更新
This commit is contained in:
18
WPFDark/Controls/BiaHighlightTextBlock.xaml
Normal file
18
WPFDark/Controls/BiaHighlightTextBlock.xaml
Normal file
@@ -0,0 +1,18 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFDark.Controls"
|
||||
xmlns:wpf="clr-namespace:WPFDark">
|
||||
<Style TargetType="{x:Type controls:BiaHighlightTextBlock}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrushKey}" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
|
||||
<Setter Property="Highlight" Value="DeepSkyBlue" />
|
||||
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Foreground" Value="{DynamicResource InactiveForegroundBrushKey}" />
|
||||
<Setter Property="Highlight" Value="{DynamicResource InactiveForegroundBrushKey}" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user