mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-12 23:41:57 +12:00
82 lines
5.4 KiB
Text
82 lines
5.4 KiB
Text
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
<Style TargetType="ComboBoxItem" x:Key="{x:Type ComboBoxItem}">
|
||
|
<Setter Property="UIElement.SnapsToDevicePixels" Value="True" />
|
||
|
<Setter Property="Padding" Value="4,1" />
|
||
|
<Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||
|
<Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
|
||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxBackground}" />
|
||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxOutline}" />
|
||
|
<Setter Property="BorderThickness" Value="1" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="{x:Type ComboBoxItem}">
|
||
|
<Border
|
||
|
Name="Bd"
|
||
|
BorderBrush="{DynamicResource ComboBoxOutline}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Background="{DynamicResource ComboBoxBackground}"
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
SnapsToDevicePixels="True">
|
||
|
<ContentPresenter
|
||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||
|
</Border>
|
||
|
<ControlTemplate.Triggers>
|
||
|
<Trigger Property="IsEnabled" Value="False">
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource SystemColors.GrayTextBrushKey}"/>
|
||
|
</Trigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="False" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="True" />
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="False" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="False" />
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="True" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="True" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="True" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="False" />
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="False" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxSelected}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="False" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="False" />
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="True" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
</MultiTrigger>
|
||
|
<MultiTrigger>
|
||
|
<MultiTrigger.Conditions>
|
||
|
<Condition Property="ListBoxItem.IsSelected" Value="False" />
|
||
|
<Condition Property="UIElement.IsMouseOver" Value="True" />
|
||
|
<Condition Property="UIElement.IsKeyboardFocused" Value="True" />
|
||
|
</MultiTrigger.Conditions>
|
||
|
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBoxHighlighted}" />
|
||
|
</MultiTrigger>
|
||
|
</ControlTemplate.Triggers>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</ResourceDictionary>
|