|
39 | 39 | Height="16"
|
40 | 40 | Margin="3,0,5,0"
|
41 | 41 | Source="{Binding Icon}" />
|
42 |
| - <local:HighlightTextBlock |
43 |
| - HighlightBrush="Khaki" |
44 |
| - HighlightPhrase="{Binding Path=HighlightPhrase, Mode=TwoWay}" |
45 |
| - IsCaseSensitive="False" |
46 |
| - IsHitTestVisible="False" |
47 |
| - Text="{Binding Path=FileName}" /> |
48 |
| - <TextBox |
49 |
| - x:Name="txtRename" |
50 |
| - Width="Auto" |
51 |
| - HorizontalAlignment="Center" |
52 |
| - KeyDown="txtRename_KeyDown" |
53 |
| - LostFocus="txtRename_LostFocus" |
54 |
| - Text="{Binding FileName, Mode=TwoWay}" |
55 |
| - Visibility="Collapsed" /> |
| 42 | + <Grid> |
| 43 | + <local:HighlightTextBlock |
| 44 | + Grid.Row="0" |
| 45 | + HighlightBrush="Khaki" |
| 46 | + HighlightPhrase="{Binding Path=HighlightPhrase, Mode=TwoWay}" |
| 47 | + IsCaseSensitive="False" |
| 48 | + IsHitTestVisible="False" |
| 49 | + Text="{Binding Path=FileName}" /> |
| 50 | + <TextBox |
| 51 | + x:Name="txtRename" |
| 52 | + Grid.Row="0" |
| 53 | + Width="Auto" |
| 54 | + Height="Auto" |
| 55 | + Padding="0" |
| 56 | + HorizontalAlignment="Center" |
| 57 | + KeyDown="txtRename_KeyDown" |
| 58 | + LostFocus="txtRename_LostFocus" |
| 59 | + Text="{Binding FileName, Mode=TwoWay}" |
| 60 | + Visibility="Collapsed" /> |
| 61 | + </Grid> |
56 | 62 | </StackPanel>
|
57 | 63 | </HierarchicalDataTemplate>
|
58 | 64 |
|
|
257 | 263 | <Setter TargetName="PART_Header" Property="MinHeight" Value="19" />
|
258 | 264 | </MultiTrigger>
|
259 | 265 | <Trigger Property="IsSelected" Value="true">
|
260 |
| - <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" /> |
261 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" /> |
| 266 | + <Setter TargetName="Bd" Property="Background" Value="#45b3e0" /> |
262 | 267 | </Trigger>
|
263 | 268 | <MultiTrigger>
|
264 | 269 | <MultiTrigger.Conditions>
|
265 | 270 | <Condition Property="IsSelected" Value="true" />
|
266 | 271 | <Condition Property="IsSelectionActive" Value="false" />
|
267 | 272 | </MultiTrigger.Conditions>
|
268 |
| - <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" /> |
269 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" /> |
| 273 | + <Setter TargetName="Bd" Property="Background" Value="#45b3e0" /> |
270 | 274 | </MultiTrigger>
|
271 |
| - <Trigger Property="IsEnabled" Value="false"> |
272 |
| - <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" /> |
273 |
| - </Trigger> |
274 | 275 | </ControlTemplate.Triggers>
|
275 | 276 | </ControlTemplate>
|
276 | 277 | </Setter.Value>
|
|
0 commit comments