<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Pixeval.Controls"
    xmlns:numberFormatting="using:Windows.Globalization.NumberFormatting">
    <Style
        x:Key="PixevalRoundedButtonStyle"
        BasedOn="{StaticResource PixevalTransparentButtonStyle}"
        TargetType="Button">
        <Style.Setters>
            <Setter Property="CornerRadius" Value="16" />
            <Setter Property="Width" Value="32" />
            <Setter Property="Height" Value="32" />
            <Setter Property="Padding" Value="0" />
        </Style.Setters>
    </Style>
    <x:Double x:Key="PixevalButtonIconSize">16</x:Double>
    <CornerRadius x:Key="ControlTopCornerRadius">4,4,0,0</CornerRadius>
    <CornerRadius x:Key="ControlBottomCornerRadius">0,0,4,4</CornerRadius>
    <CornerRadius x:Key="ControlLeftCornerRadius">4,0,0,4</CornerRadius>
    <CornerRadius x:Key="ControlRightCornerRadius">0,4,4,0</CornerRadius>
    <x:Double x:Key="PixevalButtonIconSmallSize">10</x:Double>
    <x:Double x:Key="TeachingTipContentMaxHeight">450</x:Double>
    <x:Double x:Key="TeachingTipContentMaxHeightWithTarget">430</x:Double>
    <Style
        x:Key="CaptionStrongTextBlockStyle"
        BasedOn="{StaticResource CaptionTextBlockStyle}"
        TargetType="TextBlock">
        <Setter Property="FontWeight" Value="SemiBold" />
    </Style>
    <Style
        x:Key="ViewerTextBlockStyle"
        BasedOn="{StaticResource CaptionStrongTextBlockStyle}"
        TargetType="TextBlock">
        <Setter Property="FontSize" Value="15" />
        <Setter Property="Margin" Value="10,0" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalTextAlignment" Value="Center" />
        <Setter Property="TextAlignment" Value="Center" />
        <Setter Property="TextTrimming" Value="CharacterEllipsis" />
    </Style>
    <Style x:Key="PixevalNumberBoxStyle" TargetType="NumberBox">
        <Setter Property="IsWrapEnabled" Value="True" />
        <Setter Property="LargeChange" Value="10" />
        <Setter Property="NumberFormatter" Value="{StaticResource IntegerRoundedDecimalFormatter}" />
        <Setter Property="SmallChange" Value="1" />
        <Setter Property="SpinButtonPlacementMode" Value="Compact" />
        <Setter Property="ValidationMode" Value="InvalidInputOverwritten" />
    </Style>
    <Style
        x:Key="CardControlButton"
        BasedOn="{StaticResource DefaultButtonStyle}"
        TargetType="Button">
        <Setter Property="Padding" Value="{StaticResource CardControlPadding}" />
        <Setter Property="HorizontalContentAlignment" Value="Left" />
        <Setter Property="HorizontalAlignment" Value="Stretch" />
    </Style>

    <numberFormatting:DecimalFormatter x:Key="IntegerRoundedDecimalFormatter" FractionDigits="0">
        <numberFormatting:DecimalFormatter.NumberRounder>
            <numberFormatting:IncrementNumberRounder Increment="1" RoundingAlgorithm="RoundHalfUp" />
        </numberFormatting:DecimalFormatter.NumberRounder>
    </numberFormatting:DecimalFormatter>

    <Style
        x:Key="WorkTypeComboBoxStyle"
        BasedOn="{StaticResource DefaultComboBoxStyle}"
        TargetType="controls:EnumComboBox">
        <Setter Property="ItemsSource" Value="{controls:EnumValues Type=WorkType}" />
        <Setter Property="PlaceholderText" Value="{controls:ResourceString ResourceKey='WorkTypeComboBox/PlaceholderText', ResourceFile=Misc}" />
    </Style>

    <Style
        x:Key="SimpleWorkTypeComboBoxStyle"
        BasedOn="{StaticResource DefaultComboBoxStyle}"
        TargetType="controls:EnumComboBox">
        <Setter Property="ItemsSource" Value="{controls:EnumValues Type=SimpleWorkType}" />
        <Setter Property="PlaceholderText" Value="{controls:ResourceString ResourceKey='WorkTypeComboBox/PlaceholderText', ResourceFile=Misc}" />
    </Style>

    <Style
        x:Key="PrivacyPolicyComboBoxStyle"
        BasedOn="{StaticResource DefaultComboBoxStyle}"
        TargetType="controls:EnumComboBox">
        <Setter Property="ItemsSource" Value="{controls:EnumValues Type=PrivacyPolicy}" />
        <Setter Property="PlaceholderText" Value="{controls:ResourceString ResourceKey='PrivacyPolicyComboBox/PlaceholderText', ResourceFile=Misc}" />
    </Style>

    <Style
        x:Key="WorkSortOptionComboBoxStyle"
        BasedOn="{StaticResource DefaultComboBoxStyle}"
        TargetType="controls:EnumComboBox">
        <Setter Property="ItemsSource" Value="{controls:EnumValues Type=WorkSortOption}" />
        <Setter Property="PlaceholderText" Value="{controls:ResourceString ResourceKey='SortOptionComboBox/PlaceholderText', ResourceFile=Misc}" />
    </Style>

    <Style
        x:Key="SettingsEnumComboBoxStyle"
        BasedOn="{StaticResource DefaultComboBoxStyle}"
        TargetType="controls:EnumComboBox">
        <Setter Property="Width" Value="200" />
    </Style>
    <Style
        x:Key="SettingsNumberBoxStyle"
        BasedOn="{StaticResource PixevalNumberBoxStyle}"
        TargetType="NumberBox">
        <Setter Property="Width" Value="200" />
    </Style>
</ResourceDictionary>
