16cb62a265
- Correzione grafica in SearchKeyPage e SearchLicencePage che tagliava la datagrid quando si estendevano le Opzioni
85 lines
3.4 KiB
XML
85 lines
3.4 KiB
XML
<Grid x:Class="SearchKeyPageV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:LicenseManager="clr-namespace:LicenseManager"
|
|
DataContext="{StaticResource SearchKeyPageVM}" Loaded="Grid_Loaded">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border BorderBrush="Black"
|
|
BorderThickness="1"
|
|
Height="75"
|
|
Grid.ColumnSpan="2">
|
|
<TextBlock Height="50"
|
|
Text="{Binding SearchKeyMsg}"
|
|
FontSize="30"
|
|
TextAlignment="Center"/>
|
|
</Border>
|
|
|
|
<LicenseManager:KeyPageV Grid.Row="1"
|
|
Grid.ColumnSpan="2"/>
|
|
|
|
<DataGrid Name="KeyDataGrid"
|
|
ColumnHeaderHeight="25"
|
|
RowHeight="20"
|
|
MaxHeight="250"
|
|
ItemsSource="{Binding SearchResult}"
|
|
SelectedItem="{Binding SelSearchResult}"
|
|
AutoGenerateColumns="False"
|
|
Grid.Row="2">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Number"
|
|
Binding="{Binding Number, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Client Name"
|
|
Binding="{Binding ClientName, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Is Dongle"
|
|
Binding="{Binding IsDongle, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="LockID"
|
|
Binding="{Binding LockID, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="State"
|
|
Binding="{Binding State, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Key Date"
|
|
Binding="{Binding KeyDate, Mode=OneWay, StringFormat=\{0:dd/MM/yyyy\}}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Note"
|
|
Binding="{Binding Note, Mode=OneWay}"
|
|
Width="1*"/>
|
|
<DataGridTextColumn Header="Seriale"
|
|
Binding="{Binding Seriale, Mode=OneWay}"
|
|
Width="1*"/>
|
|
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<UniformGrid Grid.Row="3" Columns="5">
|
|
<Button Content="{Binding NewMsg}"
|
|
Command="{Binding NewKey_Command}"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding SearchMsg}"
|
|
Command="{Binding SearchKey_Command}"
|
|
IsDefault="True"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding UpdateMsg}"
|
|
Command="{Binding UpdateKey_Command}"
|
|
Style="{StaticResource Page_Button}"/>
|
|
<Button Content="{Binding DeleteMsg}"
|
|
Command="{Binding DeleteKey_Command}"
|
|
Style="{StaticResource Page_Button}" Background="#FFE5AEAE"/>
|
|
<Button Content="{Binding CancelMsg}"
|
|
Command="{Binding Cancel_Command}"
|
|
Style="{StaticResource Page_Button}"/>
|
|
</UniformGrid>
|
|
|
|
</Grid> |