fix: use base resource for multicombobox.
This commit is contained in:
@@ -217,12 +217,8 @@
|
|||||||
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource ListBoxItemCheckFontSize}" />
|
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource ListBoxItemCheckBoxCornerRadius}" />
|
|
||||||
<Setter Property="MinHeight" Value="32" />
|
<Setter Property="MinHeight" Value="32" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ListBoxItemCheckForeground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemBackground}" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ListBoxItemCheckDefaultBorderBrush}" />
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="u:MultiComboBoxItem">
|
<ControlTemplate TargetType="u:MultiComboBoxItem">
|
||||||
<Border
|
<Border
|
||||||
@@ -235,11 +231,11 @@
|
|||||||
<PathIcon
|
<PathIcon
|
||||||
Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ListBoxItemCheckBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource ListBoxItemCheckBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Margin="8,0"
|
Margin="8,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Data="{DynamicResource ListBoxItemCheckCheckGlyph}"
|
Data="{DynamicResource CheckBoxCheckGlyph}"
|
||||||
Opacity="0" />
|
Opacity="0" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
x:Name="ContentPresenter"
|
||||||
@@ -268,13 +264,13 @@
|
|||||||
<!-- Pointerover State -->
|
<!-- Pointerover State -->
|
||||||
<Style Selector="^:pointerover">
|
<Style Selector="^:pointerover">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPointeroverForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPointeroverForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxItemPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Pressed State -->
|
<!-- Pressed State -->
|
||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPressedForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPressedForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxItemPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Selected State -->
|
<!-- Selected State -->
|
||||||
|
|||||||
Reference in New Issue
Block a user