| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <Window x:Class="EEMSMain.Views.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:EEMSMain.Views"
- mc:Ignorable="d"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Title="MainWindow" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <ItemsControl Grid.Column="0" ItemsSource="{Binding ContainerManager.Containers}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <RadioButton GroupName="Module" Margin="8,2" Style="{StaticResource FunctionRadio}" FontSize="13"
- IsChecked="{Binding Value.IsDefault, Mode=OneWay}" Content="{Binding Value.Name}"
- Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:MainWindow}, Path=DataContext.OpenCommand}"
- CommandParameter="{Binding Value}"/>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- <Border Grid.Column="1" BorderThickness="1" BorderBrush="{StaticResource LightDisableColor}"></Border>
-
- <Grid Grid.Column="2" >
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="4"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <TextBlock FontSize="16" FontWeight="Bold" Margin="6" Text="{Binding CurrentModule}"></TextBlock>
-
- <ContentControl Grid.Row="2" Margin="8,0" prism:RegionManager.RegionName="MainRegion"/>
- </Grid>
- </Grid>
- </Window>
|