<Window x:Class="demowpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:demowpf"
        mc:Ignorable="d"
        Title="demowpf" Height="640" Width="800" MinWidth="800" MinHeight="640">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30*"></ColumnDefinition>
            <ColumnDefinition Width="70*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0" Grid.Column="0">
            <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="4,4,4,4">
                <Button x:Name="start_" Content="Start" HorizontalAlignment="Stretch" Margin="4,4,4,4" Click="onClick_start"/>
                <Button x:Name="snap_" Content="Snap" HorizontalAlignment="Stretch" Margin="4,4,4,4" Click="OnClick_snap"/>
                <CheckBox x:Name="auto_exposure_" Content="Auto Exposure" HorizontalAlignment="Stretch" Margin="4,4,4,4" Click="onClick_auto_exposure"/>
                <Label x:Name="label_expotime_" Content="ExpoTime" HorizontalAlignment="Stretch" Margin="4,4,4,4"/>
                <Slider x:Name="slider_expotime_" HorizontalAlignment="Stretch" Height="Auto" Margin="4,4,4,4" ValueChanged="onChanged_expotime"/>
                <CheckBox x:Name="white_balance_" Content="White Balance" HorizontalAlignment="Stretch" Margin="4,4,4,4" Click="onClick_whitebalance"/>
                <Label x:Name="label_r_" Content="R" HorizontalAlignment="Stretch" Margin="4,4,4,4"/>
                <Slider x:Name="slider_r_" HorizontalAlignment="Stretch" Margin="4,4,4,4" ValueChanged="onChanged_r"/>
                <Label x:Name="label_g_" Content="G" HorizontalAlignment="Stretch" Margin="4,4,4,4"/>
                <Slider x:Name="slider_g_" HorizontalAlignment="Stretch" Margin="4,4,4,4" ValueChanged="onChanged_g"/>
                <Label x:Name="label_b_" Content="B" HorizontalAlignment="Stretch" Margin="4,4,4,4"/>
                <Slider x:Name="slider_b_" HorizontalAlignment="Stretch" Margin="4,4,4,4" ValueChanged="onChanged_b"/>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="0" Grid.Column="1">
            <Image x:Name="image_" HorizontalAlignment="Stretch" Margin="10,10,10,10" VerticalAlignment="Stretch"/>
        </Grid>
    </Grid>
</Window>
