<Window x:Class="VCS.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PenPower WorldCard SDK Demo C#" TextBlock.TextAlignment="Center" Height="600" Width="800" Unloaded="Window_Unloaded" Closed="Window_Closed" ResizeMode="NoResize">   
    <Grid>
        <StackPanel Orientation="Vertical">
            <Canvas Height="530">

                <Button Canvas.Left="10" Canvas.Top="0" Width="116" x:Name="BtnStart"  Click="BtnStart_Click" Content="Initial__Serial_No."/>
                <Button Canvas.Left="10" Canvas.Top="50" Width="116" x:Name="BtnStartKeyPro"  Click="BtnStartKeyPro_Click" Content="Initial Keypro"/>
                <Button Canvas.Left="10" Canvas.Top="104" Width="116" x:Name="BtnScan" Click="BtnScan_Click"     Content="Scan To Image File"     />
                <Button Canvas.Left="10" Canvas.Top="132" Width="116" x:Name="BtnScanOnWnd" Click="BtnScanOnWnd_Click" Content="Scan On Window" />
                <TextBox  Canvas.Left="144" Canvas.Top="104" Width="372"  x:Name="tbFile" HorizontalContentAlignment="Left"/>
                <Button Canvas.Left="10" Canvas.Top="76" Width="116" x:Name="BtnCalibrate" Click="BtnCalibrate_Click" Content="Calibrate" />
                <Button Canvas.Left="144" Canvas.Top="76" Width="80" x:Name="BtnEnd" Click="BtnEnd_Click" Content="UnInitial" />
                <Button Canvas.Left="144" Canvas.Top="132" Width="136" x:Name="BtnGetLang" Click="BtnGetLang_Click" Content="GetRecogLang" />
                <ComboBox  Canvas.Left="286" Canvas.Top="132" Width="332"  x:Name="cbLang"/>
                <Button Canvas.Left="144" Canvas.Top="160" Width="80" x:Name="BtnRecog" Click="BtnRecog_Click" Content="Recognize" />
                <TextBox x:Name="tbResult" Canvas.Left="382" Canvas.Top="207"   Width="390" Height="300" />
                <Rectangle x:Name="rcPic" Canvas.Left="10" Canvas.Top="207"  Width="300" Height="300" Fill="LightGray"/>
                <TextBox Canvas.Left="144" Canvas.Top="0" Height="22" x:Name="serailBox" Width="474" Foreground="LightGray" PreviewGotKeyboardFocus="serailBox_PreviewGotKeyboardFocus" HorizontalContentAlignment="Left" Text="Please input serial code"/>
                <TextBlock Canvas.Left="10" Canvas.Top="178" Height="24" x:Name="textBlock1" Text="Card Image:" Width="76" />
                <TextBlock Canvas.Left="379" Canvas.Top="178" Height="24" x:Name="textBlock2" Text="Recognition Result:" Width="118" />
                <Button Content="Initial_Regged" Canvas.Left="10" Canvas.Top="26" Click="Initial_Regged_Click"  Width="116"/>
            </Canvas>
            <Label  x:Name="tbMsg" Height="30"  HorizontalAlignment="Left" Background="LightGray" Width="800"/>
        </StackPanel>
    </Grid>
</Window>
