|
10 | 10 | d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance toDoItems:ToDoExplorerViewModel, IsDesignTimeCreatable=False}">
|
11 | 11 | <UserControl.Resources>
|
12 | 12 | <BitmapImage x:Key="RefreshImage" UriSource="../../Resources/arrow-circle-double.png" />
|
13 |
| - <BitmapImage x:Key="ClearImage" UriSource="../../Resources/cross-script.png" /> |
| 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" /> |
| 25 | + |
| 26 | + <Style x:Key="PrettifyRow" TargetType="DataGridRow"> |
| 27 | + <EventSetter Event="MouseDoubleClick" Handler="GroupingGridItem_MouseDoubleClick" /> |
| 28 | + <Setter Property="BorderThickness" Value="0,.5,0,0" /> |
| 29 | + <Setter Property="BorderBrush" Value="DarkGray" /> |
| 30 | + <Setter Property="Height" Value="22" /> |
| 31 | + <Setter Property="TextBlock.FontWeight" Value="Normal" /> |
| 32 | + <Style.Triggers> |
| 33 | + <Trigger Property="IsSelected" Value="True"> |
| 34 | + <Setter Property="BorderThickness" Value="1.5" /> |
| 35 | + <Setter Property="BorderBrush" Value="#adc6e5"/> |
| 36 | + <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" /> |
| 37 | + </Trigger> |
| 38 | + </Style.Triggers> |
| 39 | + <Style.Resources> |
| 40 | + <Style TargetType="Border"> |
| 41 | + <Setter Property="CornerRadius" Value="2"/> |
| 42 | + </Style> |
| 43 | + </Style.Resources> |
| 44 | + </Style> |
14 | 45 | </UserControl.Resources>
|
15 | 46 | <DockPanel LastChildFill="True">
|
16 |
| - <ToolBarTray DockPanel.Dock="Top"> |
| 47 | + <ToolBarTray DockPanel.Dock="Top" IsLocked="True"> |
17 | 48 | <ToolBar>
|
18 |
| - <StackPanel Orientation="Horizontal"> |
19 |
| - <Button ToolTip="Refresh" Command="{Binding RefreshCommand, Mode=OneWay}"> |
20 |
| - <Image Source="{StaticResource RefreshImage}"></Image> |
21 |
| - </Button> |
22 |
| - <Button ToolTip="Clear" Command="{Binding Clear}"> |
23 |
| - <Image Source="{StaticResource ClearImage}"></Image> |
24 |
| - </Button> |
25 |
| - </StackPanel> |
| 49 | + <Button ToolTip="{x:Static resx:RubberduckUI.Refresh}" Command="{Binding RefreshCommand, Mode=OneWay}" BorderThickness="0" Background="Transparent"> |
| 50 | + <Image Source="{StaticResource RefreshImage}" /> |
| 51 | + </Button> |
| 52 | + <Separator /> |
| 53 | + <Button ToolTip="{x:Static resx:RubberduckUI.Remove}" Command="{Binding Remove}" BorderThickness="0" Background="Transparent"> |
| 54 | + <Image Source="{StaticResource DeleteImage}" /> |
| 55 | + </Button> |
26 | 56 | </ToolBar>
|
27 | 57 | </ToolBarTray>
|
28 |
| - <controls:GroupingGrid ItemsSource="{Binding ToDos}" AutoGenerateColumns="False" SelectedItem="{Binding SelectedToDo}" IsExpanded="True"> |
| 58 | + <controls:GroupingGrid ItemsSource="{Binding ToDos}" AutoGenerateColumns="False" |
| 59 | + SelectedItem="{Binding SelectedToDo}" IsExpanded="True" |
| 60 | + CanUserReorderColumns="False" IsReadOnly="True" |
| 61 | + HorizontalGridLinesBrush="Transparent" VerticalGridLinesBrush="Transparent" |
| 62 | + HeadersVisibility="Column" ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 63 | + ItemContainerStyle="{StaticResource PrettifyRow}"> |
| 64 | + <DataGrid.CellStyle> |
| 65 | + <Style TargetType="DataGridCell"> |
| 66 | + <Setter Property="BorderThickness" Value="0" /> |
| 67 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 68 | + <Setter Property="Background" Value="Transparent" /> |
| 69 | + </Style> |
| 70 | + </DataGrid.CellStyle> |
29 | 71 | <DataGrid.Columns>
|
30 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.Priority}" Binding="{Binding Priority}"> |
31 |
| - </DataGridTextColumn> |
32 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_Description}" Binding="{Binding Description}"></DataGridTextColumn> |
33 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ProjectName}" Binding="{Binding ProjectName}"></DataGridTextColumn> |
34 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ModuleName}" Binding="{Binding ModuleName}"></DataGridTextColumn> |
35 |
| - <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_LineNumber}" Binding="{Binding LineNumber}"></DataGridTextColumn> |
| 72 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.Priority}" Binding="{Binding Priority}" /> |
| 73 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_Description}" Binding="{Binding Description}" Width="*"/> |
| 74 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ProjectName}" Binding="{Binding ProjectName}" /> |
| 75 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.ModuleName}" Binding="{Binding ModuleName}" /> |
| 76 | + <DataGridTextColumn Header="{x:Static resx:RubberduckUI.TodoExplorer_LineNumber}" Binding="{Binding LineNumber}" /> |
36 | 77 | </DataGrid.Columns>
|
37 | 78 | </controls:GroupingGrid>
|
38 | 79 | </DockPanel>
|
|
0 commit comments