MainWindow.xaml 853 B

1234567891011121314151617181920
  1. <Window x:Class="EEMSMain.Views.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:EEMSMain.Views"
  7. mc:Ignorable="d"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. Title="MainWindow" Height="450" Width="800">
  11. <DockPanel>
  12. <StackPanel Width="200">
  13. <Button Content="打开ViewA" Command="{Binding OpenCommand}"/>
  14. <Button Content="打开ViewB"/>
  15. </StackPanel>
  16. <ContentControl prism:RegionManager.RegionName="MainRegion"/>
  17. </DockPanel>
  18. </Window>