<UserControl x:Class="FasdDesktopUi.Basics.UserControls.DontShowAgainDialog"
             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"
             xmlns:local="clr-namespace:FasdDesktopUi.Basics.UserControls"
             xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
             mc:Ignorable="d"
             d:DesignHeight="450"
             d:DesignWidth="800"
             d:Background="White"
             x:Name="DontShowAgainUc">
    <UserControl.Resources>
        <vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
    </UserControl.Resources>

    <Border Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.TitleColumn}"
            Padding="10"
            CornerRadius="7.5">
        <StackPanel>
            <TextBlock Text="{Binding ElementName=DontShowAgainUc, Path=Text}"
                       Foreground="{DynamicResource FontColor.DetailsPage.DataHistory.ControlBar.Text}"
                       FontSize="16" />

            <CheckBox x:Name="DontShowAgainCheck"
                      Margin="0 10 0 0"
                      IsChecked="{Binding ElementName=DontShowAgainUc, Path=IsChecked}"
                      Checked="DontShowAgainCheck_Checked"
                      Unchecked="DontShowAgainCheck_Unchecked"
                      Foreground="{DynamicResource FontColor.DetailsPage.DataHistory.ControlBar.Text}"
                      Content="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Global.Dialog.DontShowAgain}" />

        </StackPanel>
    </Border>
</UserControl>
