<UserControl x:Class="OVCS.ClientWpf.VideoPanel"
             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:OVCS.ClientWpf"
             mc:Ignorable="d" 
             xmlns:omcs="clr-namespace:OMCS.Windows;assembly=OMCS"
             VerticalAlignment="Stretch"
             Height="268" Width="432"                    
             Margin="2,0,2,2"
             >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid  Background="#303030" x:Name="micStateAndUserId" Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="70"/>
            </Grid.ColumnDefinitions>
            <TextBlock  
                    Text="aa02" 
                    VerticalAlignment="Center" Grid.Column="0" 
                    Margin="10,0" HorizontalAlignment="Left"
                    Foreground="#FFFFFF" 
                    FontSize="15" 
                    x:Name="toolStrip1" 
                    />
            
            <TextBlock  Grid.Column="1" 
                    x:Name="disConnectReason" 
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center" 
                    Foreground="Red"
                    Text=""
                    Visibility="Visible"
                    Margin="10,0,20,0"
                    FontSize="12"
                    />
            <TextBlock  Grid.Column="2" 
                    x:Name="videoSizeShow" 
                    HorizontalAlignment="Right"
                    VerticalAlignment="Center" 
                    Foreground="White"
                    Text="640*480"
                    Margin="0,0,10,0"
                    FontSize="12"
                    />
            <Image  Grid.Column="3" 
                    x:Name="pictureBox_Mic" 
                    ToolTip="麦克风已打开" 
                    HorizontalAlignment="Right"
                    VerticalAlignment="Center" 
                    Source="Resources/micNor.png" 
                    Height="20" Width="20"/>
            <ProgressBar  x:Name="decibelProgress" Grid.Column="4"  Margin="7,0,10,0" Height="7" Maximum="100"/>
        </Grid>
        <Grid Grid.Row="1" x:Name="cameraGrid">
            <omcs:WpfCameraPanel x:Name ="cameraPanel1" 
                                  Background="#222"
                 Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Grid}},Path=ActualHeight}"
                 Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Grid}},Path=ActualWidth}" Grid.ColumnSpan="2"/>
        </Grid>
    </Grid>
</UserControl>
