<UserControl x:Class="McLaren_WPF.Controls.PilotPanel"
             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" 
             mc:Ignorable="d" Height="300" Width="140">
    
    <Border Margin="3" CornerRadius="10" Padding="15" Background="#E96B26">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="24"/>
                <RowDefinition Height="20"/>
                <RowDefinition Height="5*" />
                <RowDefinition Height="5*" />
                <RowDefinition Height="2*" />
            </Grid.RowDefinitions>

            <TextBlock Name="DescriptionTxt" 
                Grid.Row="0" 
                   Foreground="White"
                   FontSize="16" Padding="5,0"
                   Text="1-Pilot"
                   TextAlignment="Center" />

            <TextBlock Name="DelayTxt" Grid.Row="1" 
                   Foreground="LightGray"
                   FontSize="14" Padding="5,0"
                   Text="Delay 150 msec"
                   VerticalAlignment="Center"
                   TextAlignment="Center" />

            <TextBox Name="PilotText"  Grid.Row="2" Margin="0,10,0,0"
                   IsReadOnly="True"
                   Background="AntiqueWhite"
                   FontSize="12" Padding="5"
                   VerticalScrollBarVisibility ="Auto" 
                   HorizontalScrollBarVisibility="Disabled"
                   TextWrapping="Wrap"  AcceptsReturn="True"   
                   Text="Pilot info"
                   Foreground="#FFCD0066"
                   />

            <TextBox Name="MessageText" Grid.Row="3" 
                 Margin="0,10,0,0" Padding="5,0"
                 TextWrapping="Wrap"  AcceptsReturn="True" 
                 Background="White"
                 FontSize="12"                 
                 Text="Message" />


            <Button Grid.Row="4" VerticalAlignment="Bottom"
                Width="100" Height="24"
                Background="#FA9638"
                    Foreground="White"
                    Content="Send Message"
                Click="BtnSendMessage_Click"
                 />
        </Grid>
    </Border>
</UserControl>
