mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 13:39:47 +08:00
Update to allow preferring old dsm for #43
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user