我希望有一个主WPF表单,其中包含选项卡控件,每个选项卡都包含一个独立的WPF表单。这些表单彼此之间没有依赖关系,因此我认为将它们单独开发,然后将它们嵌入到主表单中会更容易。
表单的数量已知,因此不需要动态插件系统。
表单的数量已知,因此不需要动态插件系统。
<Window x:Class="PluginApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<DockPanel>
<Frame Name="frame" NavigationUIVisibility="Visible" Source="SomePage.xaml" />
</DockPanel>
</Window>
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowTitle="Page Title"
WindowWidth="500"
WindowHeight="200">
Hello world
</Page>