<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PenPower WorldCard SDK Demo VB.NET" TextBlock.TextAlignment="Center" Height="600" Width="800" Unloaded="Window_Unloaded"  Closed="Window_Closed"  ResizeMode="NoResize" Loaded="Window_Loaded" Name="MainDlg">
    <Grid>
        <StackPanel Orientation="Vertical">
            <Canvas Height="530">
                <Button Canvas.Left="10" Width="116" x:Name="BtnStart"  Click="BtnStart_Click" Content="Initial__Serial_No." Canvas.Top="7"/>
                <Button Canvas.Left="9" Canvas.Top="54" Width="116" x:Name="BtnStartKeyPro"  Click="BtnStartKeyPro_Click" Content="Initial Keypro"/>
                <Button Canvas.Left="9" Canvas.Top="109" Width="116" x:Name="BtnScan" Click="BtnScan_Click" Content="Scan To Image File"/>
                <Button Canvas.Left="9" Canvas.Top="131" Width="116" x:Name="BtnScanOnWnd" Click="BtnScanOnWnd_Click" Content="Scan On Window"/>
                <TextBox  Canvas.Left="143" Canvas.Top="109" Width="372"  x:Name="tbFile" HorizontalContentAlignment="Left"/>
                <Button Canvas.Left="9" Canvas.Top="80" Width="116" x:Name="BtnCalibrate" Click="BtnCalibrate_Click" Content="Calibrate"/>
                <Button Canvas.Left="143" Canvas.Top="80" Width="80" x:Name="BtnEnd" Click="BtnEnd_Click" Content="UnInitial"/>
                <Button Canvas.Left="143" Canvas.Top="131" Width="136" x:Name="BtnGetLang" Click="BtnGetLang_Click" Content="GetRecogLang"/>
                <ComboBox  Canvas.Left="285" Canvas.Top="131" Width="332"  x:Name="cbLang"/>
                <Button Canvas.Left="144" Canvas.Top="157" Width="80" x:Name="BtnRecog" Click="BtnRecog_Click" Content="Recognize"/>
                <TextBox x:Name="tbResult" Canvas.Left="388" Canvas.Top="211"   Width="390" Height="300" />
                <Rectangle x:Name="rcPic" Canvas.Left="10" Canvas.Top="211"  Width="300" Height="300" Fill="LightGray"/>
                <TextBox Canvas.Left="143" Height="22" x:Name="serailBox" Width="474" Foreground="LightGray" PreviewGotKeyboardFocus="serailBox_PreviewGotKeyboardFocus"  HorizontalContentAlignment="Left" Text="Please input serial code" Canvas.Top="7"/>
                <TextBlock Canvas.Left="10" Canvas.Top="173" Height="24" x:Name="textBlock1" Text="Card Image:" Width="76" />
                <TextBlock Canvas.Left="388" Canvas.Top="173" Height="24" x:Name="textBlock2" Text="Recognition Result:" Width="118" />
                <Button x:Name="CheckRegister" Content="Initial_Regged" Canvas.Left="10" Click="CheckRegister_Click" Canvas.Top="31" Width="115"/>
            </Canvas>
            <Label  x:Name="tbMsg" Height="30"  HorizontalAlignment="Left" Background="LightGray" Width="800" Margin="0,0,-6,0"/>
        </StackPanel>
    </Grid>
</Window>
