ntwain/samples/Sample.WPF/Launcher.xaml
2015-03-27 19:11:10 -04:00

20 lines
1023 B
XML

<Window x:Class="Sample.WPF.Launcher"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:twain="clr-namespace:NTwain;assembly=NTwain"
Title="Scan Launcher" Height="200" Width="250"
ResizeMode="NoResize" Style="{StaticResource AppWindow}">
<Grid>
<StackPanel VerticalAlignment="Center">
<CheckBox DataContext="{x:Static twain:PlatformInfo.Current}"
IsChecked="{Binding PreferNewDSM}"
IsEnabled="{Binding IsWindows, Mode=OneWay}"
Content="Prefer new DSM"
HorizontalAlignment="Center"></CheckBox>
<Button Content="Open scan window" Click="Button_Click" Margin="4 0"></Button>
<TextBlock Text="This is to test opening/closing multiple twain sessions in an app" Margin="8"
TextWrapping="Wrap"></TextBlock>
</StackPanel>
</Grid>
</Window>