|
11 | 11 | <UserControl.Resources>
|
12 | 12 | <BitmapImage x:Key="RefreshImage" UriSource="../../Resources/arrow-circle-double.png" />
|
13 | 13 | <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" /> |
14 | 25 | </UserControl.Resources>
|
15 | 26 | <DockPanel LastChildFill="True">
|
16 | 27 | <ToolBarTray DockPanel.Dock="Top" IsLocked="True">
|
|
24 | 35 | </Button>
|
25 | 36 | </ToolBar>
|
26 | 37 | </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"> |
28 | 43 | <DataGrid.ItemContainerStyle>
|
29 | 44 | <Style TargetType="DataGridRow">
|
30 | 45 | <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> |
31 | 66 | </Style>
|
32 | 67 | </DataGrid.ItemContainerStyle>
|
33 | 68 | <DataGrid.Columns>
|
|
0 commit comments