<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:customControl="clr-namespace:PDF_Master.CustomControl">

    <Style x:Key="FocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle
                        Margin="0"
                        SnapsToDevicePixels="true"
                        Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
                        StrokeDashArray="1 2"
                        StrokeThickness="0" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--  set SelectedBackgroundColor to Transparent when you do not need the background in selected items  -->
    <Color x:Key="SelectedBackgroundColor">LightBlue</Color>
    <Color x:Key="SelectedUnfocusedColor">AliceBlue</Color>

    <!--  set the MouseOverColor to Transparent when you do not need the effect in the unselected items  -->
    <Color x:Key="MouseOverColor">LightBlue</Color>
    <SolidColorBrush x:Key="Item.MouseOver.Background" Color="LightBlue" />
    <SolidColorBrush x:Key="Item.MouseOver.Border" Color="LightBlue" />
    <SolidColorBrush x:Key="Item.SelectedInactive.Background" Color="AliceBlue" />
    <SolidColorBrush x:Key="Item.SelectedInactive.Border" Color="AliceBlue" />
    <SolidColorBrush x:Key="Item.SelectedActive.Background" Color="Beige" />
    <SolidColorBrush x:Key="Item.SelectedActive.Border" Color="Beige" />
    <Style x:Key="ListBoxItemStyle" TargetType="{x:Type customControl:ListItemQuickTool}">
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />

        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type customControl:ListItemQuickTool}">
                    <Border
                        x:Name="Border"
                        Margin="0,0,0,16"
                        Background="Transparent"
                        BorderBrush="{StaticResource color.sys.border.neutral.lv3}"
                        BorderThickness="1"
                        CornerRadius="{StaticResource border-radius.8}"
                        SnapsToDevicePixels="true">
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>

                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsOverModular" Value="True" />
                            </MultiTrigger.Conditions>
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource Item.MouseOver.Background}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource Item.MouseOver.Border}" />
                        </MultiTrigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource color.sys.border.accent.lv2}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers />
    </Style>

    <Style x:Key="MoreListBoxItemStyle" TargetType="{x:Type customControl:ListItemQuickTool}">
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type customControl:ListItemQuickTool}">
                    <Border
                        x:Name="Border"
                        Margin="0,0,0,16"
                        Background="Transparent"
                        BorderThickness="1"
                        CornerRadius="4"
                        SnapsToDevicePixels="False">
                        <Border.BorderBrush>
                            <SolidColorBrush Opacity="0.05" Color="#000000" />
                        </Border.BorderBrush>
                        <ContentPresenter />
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected" Value="true" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.Setters>
                                <Setter TargetName="Border" Property="Background" Value="LightGoldenrodYellow" />
                            </MultiTrigger.Setters>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>