Files
LicenceManager/UpdateProductPage/UpdateProductPageV.xaml
T
Renzo Lanza 2ff390d577 LicenceManager 2.1b1 :
- Primo commit.
2019-02-20 09:46:20 +00:00

113 lines
4.2 KiB
XML

<Grid x:Class="UpdateProductPageV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
DataContext="{StaticResource UpdateProductPageVM}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Border BorderBrush="Black"
BorderThickness="1"
Height="75"
Grid.Row="0">
<TextBlock Height="50"
Text="{Binding UpdateProductMsg}"
FontSize="30"
TextAlignment="Center"/>
</Border>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Text="{Binding ProductNameMsg}"
Grid.Column="0"
Grid.Row="0"
Style="{StaticResource ParametersTextBlock}"/>
<EgtWPFLib5:EgtTextBox Text="{Binding NewProductName}"
Grid.Column="1"
Grid.Row="0"
Style="{StaticResource ParameterTextBox}"/>
<TextBlock Text="{Binding ProductNumberMsg}"
Grid.Column="0"
Grid.Row="1"
Style="{StaticResource ParametersTextBlock}"/>
<EgtWPFLib5:EgtTextBox Text="{Binding NewProductNumber}"
Grid.Column="1"
Grid.Row="1"
Style="{StaticResource ParameterTextBox}"/>
<GroupBox Header="{Binding Option1Msg}"
Grid.Row="4" Grid.ColumnSpan="2">
<ItemsControl ItemsSource="{Binding NewOption1}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsChecked}"
Content="{Binding Msg}"
IsEnabled="{Binding IsEnabled}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="4"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</GroupBox>
<GroupBox Header="{Binding Option2Msg}"
Grid.Row="5" Grid.ColumnSpan="2">
<ItemsControl ItemsSource="{Binding NewOption2}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsChecked}"
Content="{Binding Msg}"
IsEnabled="{Binding IsEnabled}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="4"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</GroupBox>
<UniformGrid Grid.Row="6" Grid.ColumnSpan="2" Columns="2">
<Button Content="{Binding UpdateMsg}"
Command="{Binding UpdateProduct_Command}"
Grid.Column="1"
Grid.Row="5"
Style="{StaticResource Page_Button}"/>
<Button Content="{Binding CancelMsg}"
Command="{Binding Cancel_Command}"
Grid.Column="1"
Grid.Row="6"
Style="{StaticResource Page_Button}"/>
</UniformGrid>
</Grid>
</Grid>