mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-10-01 01:26:17 +13:00
42 lines
2.3 KiB
XML
42 lines
2.3 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
|
<Style TargetType="ListViewItem">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ListViewItem">
|
|
<Border
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="2"
|
|
SnapsToDevicePixels="True">
|
|
<Border
|
|
Name="InnerBorder"
|
|
CornerRadius="1"
|
|
BorderThickness="1">
|
|
<Grid>
|
|
<Rectangle
|
|
Name="BorderBox"
|
|
Visibility="Collapsed"
|
|
Fill="Transparent" />
|
|
<GridViewRowPresenter
|
|
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>
|
|
</ResourceDictionary>
|