<UserControl x:Class="OVCS.ClientWpf.TextChatContainer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="clr-namespace:OVCS.ClientWpf.Controls.ChatBox"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OVCS.ClientWpf"
             mc:Ignorable="d">
    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="180"/>
        </Grid.RowDefinitions>
        <Grid  Background="DeepSkyBlue" Grid.Row="0" VerticalAlignment="Center" >
            <Image ToolTip="设备选择" Source="Resources/setting.png" Margin="0,10,10,11"  Width="35" Height="35"  HorizontalAlignment="Right" MouseDown="Image_MouseDown"/>
        </Grid>
        <Grid Grid.Row="1">
            <controls:ChatBox x:Name="chatBox"/>
            <local:EmotionPanel x:Name="emotionPanel" Visibility="Collapsed"  HorizontalAlignment="Left" VerticalAlignment="Bottom"/>
        </Grid>
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="36"/>
                <RowDefinition Height="108"/>
                <RowDefinition Height="36"/>
            </Grid.RowDefinitions>
            <DockPanel Grid.Row="0" Margin="10,0,10,0">
                <StackPanel Orientation="Horizontal" DockPanel.Dock="Left">
                    <Image ToolTip="表情" Source="Resources/biaoqing.png" Height="15" Width="15" Margin="10,0,10,0" x:Name="emotionButton" MouseDown="emotionButton_MouseDown"/>
                </StackPanel>
            </DockPanel>
            <StackPanel Grid.Row="1" Width="300">
                <controls:ChatInputBox ContextMenu="{x:Null}"  x:Name="inputbox"/>
            </StackPanel>
            <Grid Grid.Row="2" >
                <Grid Height="26" Width="150" Margin="0,0,20,0" HorizontalAlignment="Right">
                    <Button Height="26"  Width="68" x:Name="sendMessage2" HorizontalAlignment="Right" Content="发送"  Click="sendMessage2_Click"  VerticalAlignment="Bottom" />
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>
