|
75 | 75 | <!--Override Highlighting so that its easy to see what is selected even when the control is not focused--> |
76 | 76 | <Style.Triggers> |
77 | 77 | <Trigger Property="IsSelected" Value="True"> |
78 | | - <Setter Property="Background" Value="{x:Static SystemColors.HighlightBrush}" /> |
79 | | - <Setter Property="Foreground" Value="{x:Static SystemColors.HighlightTextBrush}" /> |
80 | | - <Setter Property="BorderBrush" Value="{x:Static SystemColors.HighlightBrush}" /> |
| 78 | + <Setter Property="Background" Value="{DynamicResource VsBrush.Highlight}" /> |
| 79 | + <Setter Property="Foreground" Value="{DynamicResource VsBrush.HighlightText}" /> |
81 | 80 | </Trigger> |
82 | 81 | <Trigger Property="IsSelected" Value="False"> |
83 | 82 | <Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}" /> |
84 | 83 | <Setter Property="Foreground" Value="{DynamicResource VsBrush.ToolWindowText}" /> |
85 | | - <Setter Property="BorderBrush" Value="{DynamicResource VsBrush.ToolWindowBorder}" /> |
86 | 84 | </Trigger> |
87 | 85 | <MultiDataTrigger> |
88 | 86 | <MultiDataTrigger.Conditions> |
|
92 | 90 | <MultiDataTrigger.Setters> |
93 | 91 | <Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}" /> |
94 | 92 | <Setter Property="Foreground" Value="{DynamicResource VsBrush.ToolWindowText}" /> |
95 | | - <Setter Property="BorderBrush" Value="{DynamicResource VsBrush.ToolWindowBorder}" /> |
96 | 93 | </MultiDataTrigger.Setters> |
97 | 94 | </MultiDataTrigger> |
98 | 95 | </Style.Triggers> |
99 | 96 | </Style> |
100 | 97 | </DataGrid.CellStyle> |
101 | 98 | <DataGrid.Columns> |
102 | | - <DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="100" /> |
| 99 | + <DataGridTextColumn Header="Name" Binding="{Binding Name}" Width="100"> |
| 100 | + <DataGridTextColumn.EditingElementStyle> |
| 101 | + <Style TargetType="TextBox"> |
| 102 | + <Setter Property="BorderThickness" Value="0" /> |
| 103 | + <Setter Property="Background" Value="{DynamicResource VsBrush.ToolWindowBackground}" /> |
| 104 | + <Setter Property="Foreground" Value="{DynamicResource VsBrush.ToolWindowText}" /> |
| 105 | + </Style> |
| 106 | + </DataGridTextColumn.EditingElementStyle> |
| 107 | + </DataGridTextColumn> |
103 | 108 | <DataGridCheckBoxColumn Binding="{Binding IsEnabled, UpdateSourceTrigger=PropertyChanged}"/> |
104 | 109 | <DataGridTemplateColumn Header="Color" Width="50"> |
105 | 110 | <DataGridTemplateColumn.CellTemplate> |
|
0 commit comments