<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Style x:Key="Customizable.Editable.TextBox"
           TargetType="TextBox">
        <Setter Property="Padding"
                Value="11" />
        <Setter Property="Margin"
                Value="0 5" />
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="BorderBrush"
                Value="Transparent" />
        <Setter Property="Foreground"
                Value="{DynamicResource FontColor.Menu.Categories}" />
        <Setter Property="IsReadOnly"
                Value="True" />

        <Style.Resources>
            <Style TargetType="Border">
                <Setter Property="CornerRadius"
                        Value="7.5" />
            </Style>
        </Style.Resources>
    </Style>

    <Style x:Key="Customizable.Editable.TextBox.Background"
           TargetType="TextBox"
           BasedOn="{StaticResource Customizable.Editable.TextBox}">
        <Setter Property="Background"
                Value="{DynamicResource BackgroundColor.DetailsPage.Widget.Title}" />
    </Style>

    <Style x:Key="Customizable.Editable.TextBox.EditOnly"
           TargetType="TextBox"
           BasedOn="{StaticResource Customizable.Editable.TextBox.Background}">
        <Setter Property="BorderBrush"
                Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Padding"
                Value="10" />
        <Setter Property="IsReadOnly"
                Value="False" />
        <Setter Property="AcceptsTab"
                Value="True" />
        <Setter Property="AcceptsReturn"
                Value="True" />
    </Style>

    <Style x:Key="MandatoryFieldBorderStyle"
           TargetType="Border">
        <Setter Property="Margin"
                Value="0 5 0 0" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Padding"
                Value="0" />
        <Setter Property="CornerRadius"
                Value="7.5" />
        <Setter Property="Background"
                Value="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" />
        <Setter Property="BorderBrush"
                Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
        <Style.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
                <Setter Property="Background"
                        Value="{DynamicResource BackgroundColor.Menu.SubCategory.Hover}" />
                <Setter Property="BorderBrush"
                        Value="{DynamicResource BackgroundColor.Menu.SubCategory}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
                <Setter Property="Opacity"
                        Value="0.5" />
            </Trigger>
        </Style.Triggers>
    </Style>

</ResourceDictionary>
