在wpf中从xaml动态加载外壳模块
我的Catalog.xaml文件是否正确加载prism中的(ShellProject或Module1)项目在wpf中从xaml动态加载外壳模块,wpf,xaml,migration,prism,Wpf,Xaml,Migration,Prism,我的Catalog.xaml文件是否正确加载prism中的(ShellProject或Module1)项目 是的,这是一种方式! 无需将模块详细信息放入目录文件中。您还可以在App.Config文件中提及 <configSections> <section name="modules" type="Prism.Modularity.ModulesConfigurationSection, Prism.Wpf" /> </configS
是的,这是一种方式!
无需将模块详细信息放入目录文件中。您还可以在App.Config文件中提及
<configSections>
<section name="modules" type="Prism.Modularity.ModulesConfigurationSection,
Prism.Wpf" />
</configSections>
<modules>
<module assemblyFile="ShellModule.dll"
moduleType="namespace, assemblyname, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
moduleName="ModuleName" startupLoaded="True" />
希望它对你有帮助。是的,这是一种方式!
无需将模块详细信息放入目录文件中。您还可以在App.Config文件中提及
<configSections>
<section name="modules" type="Prism.Modularity.ModulesConfigurationSection,
Prism.Wpf" />
</configSections>
<modules>
<module assemblyFile="ShellModule.dll"
moduleType="namespace, assemblyname, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
moduleName="ModuleName" startupLoaded="True" />
希望对你有帮助
<prism:PrismApplication x:Class="CCSEnterprise.RIA.App" x:ClassModifier="internal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/">
</prism:PrismApplication>
internal partial class App : PrismApplication
{
protected override IModuleCatalog CreateModuleCatalog()
{
return new ConfigurationModuleCatalog();
}
}