Skip to content

Commit

Permalink
chore(style): minor modified DataGrid.Small style
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Oct 11, 2021
1 parent d9682d0 commit 3e85278
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/Net_40/HandyControl_Net_40/Themes/Styles/DataGrid.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}"/>
<Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle}"/>
<Setter Property="Padding" Value="6"/>
<Setter Property="ColumnWidth" Value="*"/>
<Setter Property="RowHeight" Value="44"/>
<Setter Property="ColumnHeaderHeight" Value="44"/>
<Setter Property="hc:DataGridAttach.TextColumnStyle" Value="{StaticResource DataGridTextColumnStyle}"/>
Expand Down Expand Up @@ -106,11 +105,6 @@

<Style BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid"/>

<Style x:Key="DataGrid.Small" BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid">
<Setter Property="RowHeight" Value="24"/>
</Style>
<Style BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid"/>

<Style x:Key="DataGridCellStyle.Small" BasedOn="{StaticResource DataGridCellStyle}" TargetType="DataGridCell">
<Setter Property="Padding" Value="6,2"/>
</Style>
Expand Down
11 changes: 7 additions & 4 deletions src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11969,7 +11969,6 @@
<Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}" />
<Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle}" />
<Setter Property="Padding" Value="6" />
<Setter Property="ColumnWidth" Value="*" />
<Setter Property="RowHeight" Value="44" />
<Setter Property="ColumnHeaderHeight" Value="44" />
<Setter Property="hc:DataGridAttach.TextColumnStyle" Value="{StaticResource DataGridTextColumnStyle}" />
Expand Down Expand Up @@ -12052,9 +12051,6 @@
</Setter>
</Style>
<Style BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid" />
<Style x:Key="DataGrid.Small" BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid">
<Setter Property="RowHeight" Value="24" />
</Style>
<Style x:Key="DataGridCellStyle.Small" BasedOn="{StaticResource DataGridCellStyle}" TargetType="DataGridCell">
<Setter Property="Padding" Value="6,2" />
</Style>
Expand All @@ -12064,6 +12060,13 @@
<Style x:Key="DataGridColumnHeaderStyle.Small" BasedOn="{StaticResource DataGridColumnHeaderStyle}" TargetType="DataGridColumnHeader">
<Setter Property="Padding" Value="8,0" />
</Style>
<Style x:Key="DataGrid.Small" BasedOn="{StaticResource DataGridBaseStyle}" TargetType="DataGrid">
<Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle.Small}" />
<Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle.Small}" />
<Setter Property="ColumnHeaderStyle" Value="{StaticResource DataGridColumnHeaderStyle.Small}" />
<Setter Property="RowHeight" Value="24" />
<Setter Property="ColumnHeaderHeight" Value="20" />
</Style>
<Style BasedOn="{StaticResource DatePickerBaseStyle}" TargetType="DatePicker" />
<Style x:Key="DatePickerExtend" BasedOn="{StaticResource DatePickerExtendBaseStyle}" TargetType="DatePicker" />
<Style BasedOn="{StaticResource DatePickerPlusBaseStyle}" TargetType="hc:DatePicker" />
Expand Down
1 change: 0 additions & 1 deletion src/Shared/HandyControl_Shared/Themes/Styles/DataGrid.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}"/>
<Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle}"/>
<Setter Property="Padding" Value="6"/>
<Setter Property="ColumnWidth" Value="*"/>
<Setter Property="RowHeight" Value="44"/>
<Setter Property="ColumnHeaderHeight" Value="44"/>
<Setter Property="hc:DataGridAttach.TextColumnStyle" Value="{StaticResource DataGridTextColumnStyle}"/>
Expand Down
1 change: 0 additions & 1 deletion src/Shared/HandyControl_Shared/Themes/Theme.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12102,7 +12102,6 @@
<Setter Property="RowStyle" Value="{StaticResource DataGridRowStyle}" />
<Setter Property="CellStyle" Value="{StaticResource DataGridCellStyle}" />
<Setter Property="Padding" Value="6" />
<Setter Property="ColumnWidth" Value="*" />
<Setter Property="RowHeight" Value="44" />
<Setter Property="ColumnHeaderHeight" Value="44" />
<Setter Property="hc:DataGridAttach.TextColumnStyle" Value="{StaticResource DataGridTextColumnStyle}" />
Expand Down

0 comments on commit 3e85278

Please sign in to comment.