VRCMelonAssistant/VRCMelonAssistant/Styles/ListViewItem.xaml

43 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-02-26 22:27:39 +13:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Style TargetType="ListViewItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListViewItem">
<Border
2020-02-26 22:48:54 +13:00
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="2"
SnapsToDevicePixels="True">
<Border
2020-02-26 22:48:54 +13:00
Name="InnerBorder"
BorderThickness="1"
CornerRadius="1">
<Grid>
<Rectangle
2020-02-26 22:48:54 +13:00
Name="BorderBox"
Fill="Transparent"
Visibility="Collapsed" />
<GridViewRowPresenter
2020-02-26 22:48:54 +13:00
Grid.RowSpan="2"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Grid>
</Border>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
2020-02-26 22:48:54 +13:00
<Setter Property="Background" Value="{DynamicResource ModListItemHighlighted}" />
<Setter Property="BorderBrush" Value="{DynamicResource ModListItemHighlightedOutline}" />
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="True">
2020-02-26 22:48:54 +13:00
<Setter Property="Background" Value="{DynamicResource ModListItemSelected}" />
<Setter Property="BorderBrush" Value="{DynamicResource ModListItemSelectedOutline}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2020-02-17 14:57:58 +13:00
</ResourceDictionary>