<UserControl x:Class="SicUI.Controls.CameraControl"
             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:SicUI.Controls"
             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
             mc:Ignorable="d" 
             d:DesignHeight="480" d:DesignWidth="520" Unloaded="CameraControl_Unloaded" Loaded="CameraControl_loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <Label HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="CCD采集" Style="{DynamicResource Table_TitleStyle}" />
        <Border Grid.Row="1" Background="{DynamicResource Table_BG_Title}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1">
            <Image x:Name="imageControl" Width="480" Height="360"/>
        </Border>
        <Border Grid.Row="2" Background="{DynamicResource Table_BG_Content}" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Connection:" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="12 3"/>
                <deviceControl:AITSensor Margin="12 3" HorizontalAlignment="Center" VerticalAlignment="Center" CustomColorOff="Gray" CustomColorOn="Lime" LightOnValue="{Binding CamConnection}" IsCustomRender="True" />
                <Button Content="采集" Width="80" Margin="12 3" Click="ButtonGrab_Click"/>
                <Button Content="连续采集" Width="80" Click="ButtonGrabbing_Click" Margin="12 3"/>
                <Button Content="停止" Width="80" Click="ButtonStop_Click" Margin="12 3"/>
                <TextBlock Text="{Binding CamMessage}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="12 3"/>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
