<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    mc:Ignorable="d">    

    <Style TargetType="{x:Type SettingsMenu}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type SettingsMenu}">
                    <DockPanel Margin="0,0,200,0" MinWidth="440" Background="{DynamicResource OverlayMenuBackgroundBrush}"
                               HorizontalAlignment="Right" VerticalAlignment="Stretch"
                               d:DesignHeight="{StaticResource DesignHeight}">
                        <DockPanel.Resources>
                            <Thickness x:Key="ItemMargin">10,8,10,8</Thickness>
                        </DockPanel.Resources>

                        <TextBlock Text="{DynamicResource LOCSettingsLabel}"
                                    Style="{DynamicResource TextBlockBaseStyle}"
                                    FontFamily="{DynamicResource FontTitilliumWebBold}"
                                    HorizontalAlignment="Right" Margin="30,30,60,30"
                                    FontSize="36" DockPanel.Dock="Top" />
                                
                        <TextBlock DockPanel.Dock="Top" 
                                    Style="{DynamicResource TextBlockBaseStyle}"
                                    Margin="{StaticResource ItemMargin}"
                                    Text="{DynamicResource LOCSettingsRestartNotification}" />

                        <ScrollViewer DockPanel.Dock="Top" Margin="0,0,0,50"
                                        x:Name="PART_MenuHost" 
                                        KeyboardNavigation.TabNavigation="Cycle"                          
                                        KeyboardNavigation.DirectionalNavigation="Cycle"
                                        Focusable="False" CanContentScroll="True"
                                        HorizontalScrollBarVisibility="Disabled"
                                        VerticalScrollBarVisibility="Auto">
                            <StackPanel>
                                <TextBlock Text="{DynamicResource LOCSettingsTargetMonitor}"
                                           Margin="{StaticResource ItemMargin}"
                                           Style="{DynamicResource TextBlockBaseStyle}" />
                                <ComboBoxEx x:Name="PART_SelectMonitor"
                                            Margin="{StaticResource ItemMargin}" />

                                <ContentControl Content="{DynamicResource LOCSettingsSkin}"
                                                ContentStringFormat="{}{0} *" Focusable="False"
                                                Margin="{StaticResource ItemMargin}"
                                                Foreground="{DynamicResource TextBrush}"
                                                FontSize="{DynamicResource FontSize}"
                                                FontFamily="{DynamicResource FontTitilliumWebLight}"/>
                                <ComboBoxEx x:Name="PART_SelectTheme"
                                            Margin="{StaticResource ItemMargin}" />

                                <TextBlock Text="{DynamicResource LOCSettingsFullscreenLayout}"
                                           Margin="{StaticResource ItemMargin}"
                                           Style="{DynamicResource TextBlockBaseStyle}"/>

                                <CheckBoxEx x:Name="PART_ToggleHorizontalLayout"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsFullscreenHorizontalScrolling}" />

                                <StackPanel Orientation="Horizontal"
                                            Margin="{StaticResource ItemMargin}">
                                    <TextBlock Text="{DynamicResource LOCColumns}" Margin="0,0,5,0"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                    <TextBlock Text="{Binding Value, ElementName=PART_SliderColumns}"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                </StackPanel>
                                <SliderEx x:Name="PART_SliderColumns"
                                          Margin="{StaticResource ItemMargin}" />

                                <StackPanel Orientation="Horizontal"
                                            Margin="{StaticResource ItemMargin}">
                                    <TextBlock Text="{DynamicResource LOCRows}" Margin="0,0,5,0"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                    <TextBlock Text="{Binding Value, ElementName=PART_SliderRows}"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                </StackPanel>
                                <SliderEx x:Name="PART_SliderRows"
                                          Margin="{StaticResource ItemMargin}" />

                                <StackPanel Orientation="Horizontal"
                                            Margin="{StaticResource ItemMargin}">
                                    <TextBlock Text="{DynamicResource LOCSettingsGridItemSpacing}" Margin="0,0,5,0"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                    <TextBlock Text="{Binding Value, ElementName=PART_SliderItemSpacing}"
                                               Style="{DynamicResource TextBlockBaseStyle}"/>
                                </StackPanel>
                                <SliderEx x:Name="PART_SliderItemSpacing"
                                          Margin="{StaticResource ItemMargin}" />

                                <CheckBoxEx x:Name="PART_ToggleGameTitles"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsFullscreenShowGameTitles}"  />

                                <CheckBoxEx x:Name="PART_ToggleBattery"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsShowBatteryStatus}"  />

                                <CheckBoxEx x:Name="PART_ToggleBatteryPercentage"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{StaticResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsShowBatteryPercentage}"  />

                                <CheckBoxEx x:Name="PART_ToggleClock"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsShowClock}"  />

                                <CheckBoxEx x:Name="PART_ToggleInstalledInQFilter"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource CheckBoxSettings}"
                                            Content="{DynamicResource LOCSettingsFullscreenQuickFilterInstalled}"  />

                                <TextBlock Text="{DynamicResource LOCSettingsFullscreenButtonPrompts}"
                                            Margin="{StaticResource ItemMargin}"
                                            Style="{DynamicResource TextBlockBaseStyle}" />
                                <ComboBoxEx x:Name="PART_SelectButtonPrompts"
                                            Margin="{StaticResource ItemMargin}" />                                    
                            </StackPanel>
                        </ScrollViewer>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>