|
22 | 22 | </LinearGradientBrush>
|
23 | 23 | <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
|
24 | 24 | <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />
|
| 25 | + |
| 26 | + <Style x:Key="PrettifyRow" TargetType="DataGridRow"> |
| 27 | + <EventSetter Event="MouseDoubleClick" Handler="GroupingGridItem_MouseDoubleClick" /> |
| 28 | + <Setter Property="BorderThickness" Value="1.5" /> |
| 29 | + <Setter Property="Height" Value="22" /> |
| 30 | + <Setter Property="TextBlock.FontWeight" Value="Normal" /> |
| 31 | + <Style.Triggers> |
| 32 | + <Trigger Property="IsSelected" Value="True"> |
| 33 | + <Setter Property="BorderBrush" Value="#adc6e5"/> |
| 34 | + </Trigger> |
| 35 | + <MultiTrigger> |
| 36 | + <MultiTrigger.Conditions> |
| 37 | + <Condition Property="IsSelected" Value="True"/> |
| 38 | + <Condition Property="IsFocused" Value="False"/> |
| 39 | + </MultiTrigger.Conditions> |
| 40 | + <Setter Property="BorderBrush" Value="LightGray"/> |
| 41 | + </MultiTrigger> |
| 42 | + </Style.Triggers> |
| 43 | + <Style.Resources> |
| 44 | + <Style TargetType="Border"> |
| 45 | + <Setter Property="CornerRadius" Value="2"/> |
| 46 | + </Style> |
| 47 | + </Style.Resources> |
| 48 | + </Style> |
25 | 49 | </UserControl.Resources>
|
26 | 50 | <DockPanel LastChildFill="True">
|
27 | 51 | <ToolBarTray DockPanel.Dock="Top" IsLocked="True">
|
28 |
| - <ToolBar OverflowMode="Never"> |
| 52 | + <ToolBar> |
29 | 53 | <Button ToolTip="{x:Static resx:RubberduckUI.Refresh}" Command="{Binding RefreshCommand, Mode=OneWay}" BorderThickness="0" Background="Transparent">
|
30 | 54 | <Image Source="{StaticResource RefreshImage}" />
|
31 | 55 | </Button>
|
32 |
| - <Separator BorderThickness="1,0,0,0" BorderBrush="DarkGray" /> |
| 56 | + <Separator /> |
33 | 57 | <Button ToolTip="{x:Static resx:RubberduckUI.Remove}" Command="{Binding Remove}" BorderThickness="0" Background="Transparent">
|
34 | 58 | <Image Source="{StaticResource DeleteImage}" />
|
35 | 59 | </Button>
|
|
39 | 63 | SelectedItem="{Binding SelectedToDo}" IsExpanded="True"
|
40 | 64 | CanUserReorderColumns="False" IsReadOnly="True"
|
41 | 65 | HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="Gray"
|
42 |
| - HeadersVisibility="Column" ScrollViewer.HorizontalScrollBarVisibility="Disabled"> |
43 |
| - <DataGrid.ItemContainerStyle> |
44 |
| - <Style TargetType="DataGridRow"> |
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> |
| 66 | + HeadersVisibility="Column" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 67 | + ItemContainerStyle="{StaticResource PrettifyRow}"> |
| 68 | + <DataGrid.CellStyle> |
| 69 | + <Style TargetType="DataGridCell"> |
| 70 | + <Setter Property="BorderThickness" Value="0" /> |
66 | 71 | </Style>
|
67 |
| - </DataGrid.ItemContainerStyle> |
| 72 | + </DataGrid.CellStyle> |
68 | 73 | <DataGrid.Columns>
|
69 | 74 | <DataGridTextColumn Header="{x:Static resx:RubberduckUI.Priority}" Binding="{Binding Priority}" />
|
70 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_Description}" Binding="{Binding Description}" Width="*" /> |
| 75 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_Description}" Binding="{Binding Description}" Width="*"/> |
71 | 76 | <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ProjectName}" Binding="{Binding ProjectName}" />
|
72 | 77 | <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ModuleName}" Binding="{Binding ModuleName}" />
|
73 | 78 | <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_LineNumber}" Binding="{Binding LineNumber}" />
|
|
0 commit comments