I want to crea开发者_高级运维te a master XAML file which includes a bunch of other XAML files. Is this possible?
In your main Xaml, use a ItemsControl balise and for the Xaml composant, you must define your project with UserControl in place of Window
<ItemsControl x:Name="Plugins" x:FieldModifier="private" Height="auto">
In your code, you just need to write this:
Plugins.Items.Add(UserControl);
Maybe you can learn something about MEF for the loading of all yours Xaml
精彩评论