<UserControl x:Class="FasdDesktopUi.Basics.UserControls.ForwardTicketDialog"
             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="ForwardTicketDialogUc">
    <UserControl.Resources>
        <vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
    </UserControl.Resources>

    <StackPanel x:Name="MainStack">
        <TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.ForwardTicket.ResponsibleRole}"
                   FontWeight="Bold"
                   Foreground="{DynamicResource FontColor.Menu.Categories}" />

        <Border x:Name="RoleValidationBorder"
                Margin="0 5 0 10"
                Style="{StaticResource MandatoryFieldBorderStyle}">
            <local:ComboBoxPageable x:Name="RoleSelectionControl"
                                    SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedRole, Mode=TwoWay}"
                                    RestoreParentScrollFocusOnDropDownClose="True"
                                    ComboBoxBackground="{Binding Background, RelativeSource={RelativeSource AncestorType=Border}}"
                                    BorderBrush="Transparent"
                                    BorderThickness="0" />
        </Border>

        <TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.ForwardTicket.ResponsiblePerson}"
                   FontWeight="Bold"
                   Foreground="{DynamicResource FontColor.Menu.Categories}" />

        <Border x:Name="PersonValidationBorder"
                Margin="0 5 0 10"
                Style="{StaticResource MandatoryFieldBorderStyle}">
            <local:ComboBoxPageable x:Name="PersonSelectionControl"
                                    SelectedItem="{Binding ElementName=ForwardTicketDialogUc, Path=SelectedPerson, Mode=TwoWay}"
                                    RestoreParentScrollFocusOnDropDownClose="True"
                                    ComboBoxBackground="{Binding Background, RelativeSource={RelativeSource AncestorType=Border}}"
                                    BorderBrush="Transparent"
                                    BorderThickness="0" />
        </Border>

        <TextBlock Text="{Binding Converter={StaticResource LanguageConverter}, ConverterParameter=Dialog.CloseCase.ForwardTicket.Comment}"
                   FontWeight="Bold"
                   Foreground="{DynamicResource FontColor.Menu.Categories}" />

        <TextBox x:Name="CommentTextbox"
                 Text="{Binding ElementName=ForwardTicketDialogUc, Path=Comment, Mode=TwoWay}"
                 Margin="0 5 0 0"
                 Style="{DynamicResource Customizable.Editable.TextBox.EditOnly}"
                 MinLines="3"
                 TextWrapping="Wrap"
                 Background="{DynamicResource BackgroundColor.DetailsPage.DataHistory.ValueColumn}" />
    </StackPanel>
</UserControl>
