<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:m="http://metro.mahapps.com/winfx/xaml/controls"
                    xmlns:mi="http://metro.mahapps.com/winfx/xaml/iconpacks"
                    xmlns:md="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
                    xmlns:views="clr-namespace:MyPad.Views"
                    xmlns:controls="clr-namespace:MyPad.Views.Controls">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="./Sizes.xaml"/>
        <ResourceDictionary Source="./Common.xaml"/>
        <ResourceDictionary Source="./Advanced.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <Style TargetType="{x:Type mi:PackIconBootstrapIcons}" BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconBoxIcons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconCodicons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconCoolicons}"      BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconEntypo}"         BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconEvaIcons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconFeatherIcons}"   BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconFileIcons}"      BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconFontaudio}"      BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconFontAwesome}"    BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconFontisto}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconForkAwesome}"    BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconIonicons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconJamIcons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconMaterialDesign}" BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconMaterial}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconMaterialLight}"  BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconMicrons}"        BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconModern}"         BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconOcticons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconPicolIcons}"     BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconPixelartIcons}"  BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconRadixIcons}"     BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconRemixIcon}"      BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconRPGAwesome}"     BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconSimpleIcons}"    BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconTypicons}"       BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconUnicons}"        BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconVaadinIcons}"    BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconWeatherIcons}"   BasedOn="{StaticResource Common.PackIcon}"/>
    <Style TargetType="{x:Type mi:PackIconZondicons}"      BasedOn="{StaticResource Common.PackIcon}"/>

    <Style TargetType="{x:Type m:Badged}"                  BasedOn="{StaticResource Common.Badged}"/>
    <Style TargetType="{x:Type TextBlock}"                 BasedOn="{StaticResource Common.TextBlock}"/>
    <Style TargetType="{x:Type Label}"                     BasedOn="{StaticResource Common.Label}"/>
    <Style TargetType="{x:Type ToolTip}"                   BasedOn="{StaticResource Common.ToolTip}"/>
    <Style TargetType="{x:Type m:CustomValidationPopup}"   BasedOn="{StaticResource Common.CustomValidationPopup}"/>
    <Style TargetType="{x:Type m:ProgressRing}"            BasedOn="{StaticResource Common.ProgressRing}"/>
    <Style TargetType="{x:Type ProgressBar}"               BasedOn="{StaticResource Common.ProgressBar}"/>
    <Style TargetType="{x:Type m:MetroProgressBar}"        BasedOn="{StaticResource Common.MetroProgressBar}"/>
    <Style TargetType="{x:Type Slider}"                    BasedOn="{StaticResource Common.Slider}"/>
    <Style TargetType="{x:Type m:Tile}"                    BasedOn="{StaticResource Common.Tile}"/>
    <Style TargetType="{x:Type Button}"                    BasedOn="{StaticResource Common.Button}"/>
    <Style TargetType="{x:Type ToggleButton}"              BasedOn="{StaticResource Common.ToggleButton}"/>
    <Style TargetType="{x:Type m:DropDownButton}"          BasedOn="{StaticResource Common.DropDownButton}"/>
    <Style TargetType="{x:Type RadioButton}"               BasedOn="{StaticResource Common.RadioButton}"/>
    <Style TargetType="{x:Type CheckBox}"                  BasedOn="{StaticResource Common.CheckBox}"/>
    <Style TargetType="{x:Type TextBox}"                   BasedOn="{StaticResource Common.TextBox}"/>
    <Style TargetType="{x:Type RichTextBox}"               BasedOn="{StaticResource Common.RichTextBox}"/>
    <Style TargetType="{x:Type PasswordBox}"               BasedOn="{StaticResource Common.PasswordBox}"/>
    <Style TargetType="{x:Type m:NumericUpDown}"           BasedOn="{StaticResource Common.NumericUpDown}"/>
    <Style TargetType="{x:Type DatePicker}"                BasedOn="{StaticResource Common.DatePicker}"/>
    <Style TargetType="{x:Type Calendar}"                  BasedOn="{StaticResource Common.Calendar}"/>
    <Style TargetType="{x:Type ComboBoxItem}"              BasedOn="{StaticResource Common.ComboBoxItem}"/>
    <Style TargetType="{x:Type ComboBox}"                  BasedOn="{StaticResource Common.ComboBox}"/>
    <Style TargetType="{x:Type ListBoxItem}"               BasedOn="{StaticResource Common.ListBoxItem}"/>
    <Style TargetType="{x:Type ListBox}"                   BasedOn="{StaticResource Common.ListBox}"/>
    <Style TargetType="{x:Type ListViewItem}"              BasedOn="{StaticResource Common.ListViewItem}"/>
    <Style TargetType="{x:Type ListView}"                  BasedOn="{StaticResource Common.ListView}"/>
    <Style TargetType="{x:Type TreeViewItem}"              BasedOn="{StaticResource Common.TreeViewItem}"/>
    <Style TargetType="{x:Type TreeView}"                  BasedOn="{StaticResource Common.TreeView}"/>
    <Style TargetType="{x:Type GridViewColumnHeader}"      BasedOn="{StaticResource Common.GridViewColumnHeader}"/>
    <Style TargetType="{x:Type DataGridColumnHeader}"      BasedOn="{StaticResource Common.DataGridColumnHeader}"/>
    <Style TargetType="{x:Type DataGridRowHeader}"         BasedOn="{StaticResource Common.DataGridRowHeader}"/>
    <Style TargetType="{x:Type DataGridRow}"               BasedOn="{StaticResource Common.DataGridRow}"/>
    <Style TargetType="{x:Type DataGridCell}"              BasedOn="{StaticResource Common.DataGridCell}"/>
    <Style TargetType="{x:Type DataGrid}"                  BasedOn="{StaticResource Common.DataGrid}"/>
    <Style TargetType="{x:Type GridSplitter}"              BasedOn="{StaticResource Common.GridSplitter}"/>
    <Style TargetType="{x:Type GroupBox}"                  BasedOn="{StaticResource Common.GroupBox}"/>
    <Style TargetType="{x:Type Expander}"                  BasedOn="{StaticResource Common.Expander}"/>
    <Style TargetType="{x:Type ScrollBar}"                 BasedOn="{StaticResource Common.ScrollBar}"/>
    <Style TargetType="{x:Type ScrollViewer}"              BasedOn="{StaticResource Common.ScrollViewer}"/>
    <Style TargetType="{x:Type TabItem}"                   BasedOn="{StaticResource Common.TabItem}"/>
    <Style TargetType="{x:Type TabControl}"                BasedOn="{StaticResource Common.TabControl}"/>
    <Style TargetType="{x:Type MenuItem}"                  BasedOn="{StaticResource Common.MenuItem}"/>
    <Style TargetType="{x:Type Menu}"                      BasedOn="{StaticResource Common.Menu}"/>
    <Style TargetType="{x:Type ContextMenu}"               BasedOn="{StaticResource Common.ContextMenu}"/>
    <Style TargetType="{x:Type ToolBar}"                   BasedOn="{StaticResource Common.ToolBar}"/>
    <Style TargetType="{x:Type StatusBarItem}"             BasedOn="{StaticResource Common.StatusBarItem}"/>
    <Style TargetType="{x:Type StatusBar}"                 BasedOn="{StaticResource Common.StatusBar}"/>
    <Style TargetType="{x:Type m:WindowCommands}"          BasedOn="{StaticResource Common.WindowCommands}"/>
    <Style TargetType="{x:Type m:HamburgerMenu}"           BasedOn="{StaticResource Common.HamburgerMenu}"/>
    <Style TargetType="{x:Type m:Flyout}"                  BasedOn="{StaticResource Common.Flyout}"/>
    <Style TargetType="{x:Type md:CustomDialog}"           BasedOn="{StaticResource Common.CustomDialog}"/>
    <Style TargetType="{x:Type md:MessageDialog}"          BasedOn="{StaticResource Common.MessageDialog}"/>

    <Style TargetType="{x:Type controls:NumericUpDown}"    BasedOn="{StaticResource Common.NumericUpDown}"/>
    <Style TargetType="{x:Type views:MahAppsDialog}"       BasedOn="{StaticResource Common.CustomDialog}"/>

    <Style x:Key="{ComponentResourceKey ResourceId=MetroDataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
        <Setter Property="Template" Value="{DynamicResource Common.DataGridSelectAllButtonTemplate}"/>
    </Style>

    <Style x:Key="MahApps.Styles.Button.FlipView.Navigation" TargetType="{x:Type Button}" BasedOn="{StaticResource Common.FlipView.Navigation}"/>

</ResourceDictionary>