|
|
|
@ -4,6 +4,13 @@ |
|
|
|
Width="Auto" |
|
|
|
Width="Auto" |
|
|
|
Height="Auto" |
|
|
|
Height="Auto" |
|
|
|
Background="Transparent"> |
|
|
|
Background="Transparent"> |
|
|
|
|
|
|
|
<UserControl.Resources> |
|
|
|
|
|
|
|
<LinearGradientBrush x:Key="RowBackground" StartPoint="0.5,0" EndPoint="0.5,1"> |
|
|
|
|
|
|
|
<GradientStop Color="#F7F7F7" Offset="0.2"/> |
|
|
|
|
|
|
|
<GradientStop Color="#EAEAEA" Offset=".5"/> |
|
|
|
|
|
|
|
<GradientStop Color="#E5E5E5" Offset=".8"/> |
|
|
|
|
|
|
|
</LinearGradientBrush> |
|
|
|
|
|
|
|
</UserControl.Resources> |
|
|
|
<Border |
|
|
|
<Border |
|
|
|
x:Name="BorderParent" |
|
|
|
x:Name="BorderParent" |
|
|
|
BorderBrush="Black" |
|
|
|
BorderBrush="Black" |
|
|
|
@ -38,7 +45,7 @@ |
|
|
|
Margin="2" |
|
|
|
Margin="2" |
|
|
|
HorizontalAlignment="Center" /> |
|
|
|
HorizontalAlignment="Center" /> |
|
|
|
</Border> |
|
|
|
</Border> |
|
|
|
<DataGrid |
|
|
|
<DataGrid |
|
|
|
Background="Transparent" |
|
|
|
Background="Transparent" |
|
|
|
Margin="5,0,5,5" |
|
|
|
Margin="5,0,5,5" |
|
|
|
x:Name="datagrid" |
|
|
|
x:Name="datagrid" |
|
|
|
@ -81,25 +88,25 @@ |
|
|
|
</Style> |
|
|
|
</Style> |
|
|
|
</DataGrid.CellStyle> |
|
|
|
</DataGrid.CellStyle> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<DataGrid.RowStyle> |
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
<Setter Property="Background" Value="White"></Setter> |
|
|
|
<Setter Property="Background" Value="White"></Setter> |
|
|
|
<Style.Triggers> |
|
|
|
<Style.Triggers> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Trigger Property="IsMouseOver" Value="True"> |
|
|
|
<Setter Property="Background" Value="LightGray" /> |
|
|
|
<Setter Property="Background" Value="{StaticResource RowBackground}" /> |
|
|
|
</Trigger> |
|
|
|
</Trigger> |
|
|
|
</Style.Triggers> |
|
|
|
</Style.Triggers> |
|
|
|
</Style> |
|
|
|
</Style> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
</DataGrid.RowStyle> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGrid.Columns> |
|
|
|
<DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataGridTemplateColumn.CellTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Border BorderBrush="Gray" BorderThickness="0,1,1,0" Width="25" Height="22"> |
|
|
|
<Border BorderBrush="Gray" BorderThickness="0,1,1,0" Width="25" Height="22"> |
|
|
|
<Image VerticalAlignment="Center" Margin="0,-5,0,0" Width="14" Height="14" HorizontalAlignment="Center" |
|
|
|
<Image VerticalAlignment="Center" Margin="0,-5,0,0" Width="14" Height="14" HorizontalAlignment="Center" |
|
|
|
Source="{Binding Image}" /> |
|
|
|
Source="{Binding Image}" /> |
|
|
|
</Border> |
|
|
|
</Border> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn.CellTemplate> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
</DataGridTemplateColumn> |
|
|
|
<DataGridTemplateColumn |
|
|
|
<DataGridTemplateColumn |
|
|
|
Width="Auto"> |
|
|
|
Width="Auto"> |
|
|
|
@ -107,12 +114,12 @@ |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Border BorderBrush="Gray" BorderThickness="0,1,0,0"> |
|
|
|
<Border BorderBrush="Gray" BorderThickness="0,1,0,0"> |
|
|
|
<TextBlock Margin="5,0,10,0" |
|
|
|
<TextBlock Margin="5,0,10,0" |
|
|
|
VerticalAlignment="Center" |
|
|
|
VerticalAlignment="Center" |
|
|
|
FontFamily="Khmer UI" |
|
|
|
FontFamily="Khmer UI" |
|
|
|
FontSize="12" |
|
|
|
FontSize="12" |
|
|
|
Text="{Binding Path=MethodName}" |
|
|
|
Text="{Binding Path=MethodName}" |
|
|
|
FontWeight="{Binding Path=FontWeight}" |
|
|
|
FontWeight="{Binding Path=FontWeight}" |
|
|
|
Foreground="{Binding Path=Foreground}" |
|
|
|
Foreground="{Binding Path=Foreground}" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Border> |
|
|
|
</Border> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|
|