MainWindow.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="200"/>
  14. <ColumnDefinition Width="auto"/>
  15. <ColumnDefinition Width="*"/>
  16. </Grid.ColumnDefinitions>
  17. <ItemsControl Grid.Column="0" ItemsSource="{Binding ContainerManager.Containers}">
  18. <ItemsControl.ItemTemplate>
  19. <DataTemplate>
  20. <RadioButton GroupName="Module" Margin="8,2" Style="{StaticResource FunctionRadio}" FontSize="13"
  21. IsChecked="{Binding Value.IsDefault, Mode=OneWay}" Content="{Binding Value.Name}"
  22. Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:MainWindow}, Path=DataContext.OpenCommand}"
  23. CommandParameter="{Binding Value}"/>
  24. </DataTemplate>
  25. </ItemsControl.ItemTemplate>
  26. </ItemsControl>
  27. <Border Grid.Column="1" BorderThickness="1" BorderBrush="{StaticResource LightDisableColor}"></Border>
  28. <Grid Grid.Column="2" >
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="auto"/>
  31. <RowDefinition Height="4"/>
  32. <RowDefinition/>
  33. </Grid.RowDefinitions>
  34. <TextBlock FontSize="16" FontWeight="Bold" Margin="6" Text="{Binding CurrentModule}"></TextBlock>
  35. <ContentControl Grid.Row="2" Margin="8,0" prism:RegionManager.RegionName="MainRegion"/>
  36. </Grid>
  37. </Grid>
  38. </Window>