VRCMelonAssistant/ModAssistant/Styles/ListViewItem.xaml

43 lines
2.3 KiB
Plaintext
Raw Normal View History

<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:21:02 +13:00
BorderThickness="{TemplateBinding BorderThickness}"
BorderBrush="{TemplateBinding BorderBrush}"
Background="{TemplateBinding Background}"
CornerRadius="2"
SnapsToDevicePixels="True">
<Border
2020-02-26 22:21:02 +13:00
Name="InnerBorder"
CornerRadius="1"
BorderThickness="1">
<Grid>
<Rectangle
2020-02-26 22:21:02 +13:00
Name="BorderBox"
Visibility="Collapsed"
Fill="Transparent" />
<GridViewRowPresenter
2020-02-26 22:21:02 +13:00
Grid.RowSpan="2"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Grid>
</Border>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource ModListItemHighlighted}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ModListItemHighlightedOutline}"/>
</Trigger>
<Trigger Property="ListBoxItem.IsSelected" Value="True">
<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>