<UserControl x:Class="YoseenPTZ.CoreDef.DeviceView"
             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:YoseenPTZ.CoreDef"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Grid Grid.Column="0" Margin="4">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>

            <Grid Grid.Row="0" Background="#404040">
                <Grid.Resources>
                    <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
                        <Setter Property="FontSize" Value="16"></Setter>
                        <Setter Property="FontWeight" Value="Bold"></Setter>
                        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                        <Setter Property="VerticalAlignment" Value="Center"></Setter>
                    </Style>
                </Grid.Resources>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" Text="FPS"></TextBlock>
                <TextBlock Grid.Column="1" x:Name="ir_txtFPS" Foreground="Magenta"></TextBlock>

                <TextBlock Grid.Column="2" Text="SHELL"></TextBlock>
                <TextBlock Grid.Column="3" x:Name="ir_txtSHELL" Foreground="Magenta"></TextBlock>

                <TextBlock Grid.Column="4" Text="FPA"></TextBlock>
                <TextBlock Grid.Column="5" x:Name="ir_txtFPA" Foreground="Magenta"></TextBlock>
            </Grid>

            <Viewbox Grid.Row="1" Stretch="Uniform">
                <local:IRCanvas x:Name="ir_canvas"></local:IRCanvas>
            </Viewbox>
        </Grid>

        <Grid Grid.Column="1" Margin="4">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>

            <Grid Grid.Row="0" Background="#404040">
                <Grid.Resources>
                    <Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
                        <Setter Property="FontSize" Value="16"></Setter>
                        <Setter Property="FontWeight" Value="Bold"></Setter>
                        <Setter Property="HorizontalAlignment" Value="Left"></Setter>
                        <Setter Property="VerticalAlignment" Value="Center"></Setter>
                    </Style>
                </Grid.Resources>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" Text="FPS"></TextBlock>
                <TextBlock Grid.Column="1" x:Name="vis_txtFPS" Foreground="Magenta"></TextBlock>

                <Button Grid.Column="3" HorizontalAlignment="Right"  x:Name="btnVoiceTalk" Click="btnVoiceTalk_Click" Style="{StaticResource button_w100h30}"></Button>
            </Grid>

            <Viewbox Grid.Row="1" Stretch="Uniform">
                <local:BaseCanvas x:Name="vis_canvas"></local:BaseCanvas>
            </Viewbox>
            <!--<local:HwndCanvas Grid.Row="1" x:Name="vis_canvas"></local:HwndCanvas>-->
        </Grid>
    </Grid>
</UserControl>
