csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.9 KiB
41 lines
1.9 KiB
<Styles xmlns="https://github.com/avaloniaui">
|
|
<Style Selector="ComboBoxItem">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Padding" Value="2"/>
|
|
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<ContentPresenter Name="PART_ContentPresenter"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
Content="{TemplateBinding Content}"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Padding="{TemplateBinding Padding}"/>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeControlHighlightMidBrush}"/>
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush4}"/>
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem:selected:focus /template/ ContentPresenter">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush3}"/>
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem:selected:pointerover /template/ ContentPresenter">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush3}"/>
|
|
</Style>
|
|
|
|
<Style Selector="ComboBoxItem:selected:focus:pointerover /template/ ContentPresenter">
|
|
<Setter Property="Background" Value="{DynamicResource ThemeAccentBrush2}"/>
|
|
</Style>
|
|
</Styles>
|
|
|