Skip to content

Commit c6be20a

Browse files
committed
Some style changes
1 parent f1e2bb3 commit c6be20a

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

RetailCoder.VBE/UI/ToDoItems/ToDoExplorerControl.xaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
<UserControl.Resources>
1212
<BitmapImage x:Key="RefreshImage" UriSource="../../Resources/arrow-circle-double.png" />
1313
<BitmapImage x:Key="DeleteImage" UriSource="../../Resources/cross-script.png" />
14+
15+
<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
16+
<GradientStop Color="#FFD9F4FF" Offset="0"/>
17+
<GradientStop Color="#FF9BDDFB" Offset="1"/>
18+
</LinearGradientBrush>
19+
<LinearGradientBrush x:Key="{x:Static SystemColors.ControlBrushKey}" EndPoint="0,1" StartPoint="0,0">
20+
<GradientStop Color="#FFEEEDED" Offset="0"/>
21+
<GradientStop Color="#FFDDDDDD" Offset="1"/>
22+
</LinearGradientBrush>
23+
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
24+
<SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />
1425
</UserControl.Resources>
1526
<DockPanel LastChildFill="True">
1627
<ToolBarTray DockPanel.Dock="Top" IsLocked="True">
@@ -24,10 +35,34 @@
2435
</Button>
2536
</ToolBar>
2637
</ToolBarTray>
27-
<controls:GroupingGrid ItemsSource="{Binding ToDos}" AutoGenerateColumns="False" SelectedItem="{Binding SelectedToDo}" IsExpanded="True" CanUserReorderColumns="False" IsReadOnly="True" HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="Gray">
38+
<controls:GroupingGrid ItemsSource="{Binding ToDos}" AutoGenerateColumns="False"
39+
SelectedItem="{Binding SelectedToDo}" IsExpanded="True"
40+
CanUserReorderColumns="False" IsReadOnly="True"
41+
HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="Gray"
42+
HeadersVisibility="Column" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
2843
<DataGrid.ItemContainerStyle>
2944
<Style TargetType="DataGridRow">
3045
<EventSetter Event="MouseDoubleClick" Handler="GroupingGridItem_MouseDoubleClick" />
46+
<Setter Property="BorderThickness" Value="1.5" />
47+
<Setter Property="Height" Value="22" />
48+
<Setter Property="Margin" Value="4,0" />
49+
<Style.Triggers>
50+
<Trigger Property="IsSelected" Value="True">
51+
<Setter Property="BorderBrush" Value="#adc6e5"/>
52+
</Trigger>
53+
<MultiTrigger>
54+
<MultiTrigger.Conditions>
55+
<Condition Property="IsSelected" Value="True"/>
56+
<Condition Property="IsFocused" Value="False"/>
57+
</MultiTrigger.Conditions>
58+
<Setter Property="BorderBrush" Value="LightGray"/>
59+
</MultiTrigger>
60+
</Style.Triggers>
61+
<Style.Resources>
62+
<Style TargetType="Border">
63+
<Setter Property="CornerRadius" Value="2"/>
64+
</Style>
65+
</Style.Resources>
3166
</Style>
3267
</DataGrid.ItemContainerStyle>
3368
<DataGrid.Columns>

0 commit comments

Comments
 (0)