|
@@ -11,6 +11,7 @@
|
|
Loaded="PrinterDialog_Loaded">
|
|
Loaded="PrinterDialog_Loaded">
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary>
|
|
|
|
+ <common:CommonResourceConverter x:Key="CommonResourceConverter"></common:CommonResourceConverter>
|
|
<Style x:Key="TitleTextBlockStyle" TargetType="{x:Type TextBlock}">
|
|
<Style x:Key="TitleTextBlockStyle" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="FontSize" Value="12"></Setter>
|
|
<Setter Property="FontSize" Value="12"></Setter>
|
|
<Setter Property="FontWeight" Value="SemiBold"></Setter>
|
|
<Setter Property="FontWeight" Value="SemiBold"></Setter>
|
|
@@ -42,7 +43,7 @@
|
|
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="16,0,8,0">
|
|
<StackPanel Orientation="Vertical" Grid.Column="1" Margin="16,0,8,0">
|
|
<StackPanel Orientation="Vertical">
|
|
<StackPanel Orientation="Vertical">
|
|
<StackPanel Grid.Row="0" Orientation="Vertical">
|
|
<StackPanel Grid.Row="0" Orientation="Vertical">
|
|
- <TextBlock Text="Printer" Style="{StaticResource TitleTextBlockStyle}" Margin="0,0,0,8"></TextBlock>
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Printer}" Style="{StaticResource TitleTextBlockStyle}" Margin="0,0,0,8"></TextBlock>
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
<ComboBox
|
|
<ComboBox
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
@@ -57,15 +58,16 @@
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
|
<CheckBox
|
|
<CheckBox
|
|
x:Name="chkGrayScale"
|
|
x:Name="chkGrayScale"
|
|
- VerticalAlignment="Center"
|
|
|
|
- Content="Gray Scale"
|
|
|
|
- Click="chkGrayScale_Click"></CheckBox>
|
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Click="chkGrayScale_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_GrayScale}"></TextBlock>
|
|
|
|
+ </CheckBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Margin="0,8,0,0" Grid.Row="1" Orientation="Vertical">
|
|
<StackPanel Margin="0,8,0,0" Grid.Row="1" Orientation="Vertical">
|
|
- <TextBlock Text="Print Settings" Style="{StaticResource TitleTextBlockStyle}"></TextBlock>
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Settings}" Style="{StaticResource TitleTextBlockStyle}"></TextBlock>
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
|
- <TextBlock Text="Paper"
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Paper}"
|
|
Width="64"
|
|
Width="64"
|
|
Height="22"
|
|
Height="22"
|
|
FontFamily="Segoe UI"
|
|
FontFamily="Segoe UI"
|
|
@@ -82,16 +84,23 @@
|
|
Width="64"
|
|
Width="64"
|
|
Height="22"
|
|
Height="22"
|
|
FontFamily="Segoe UI"
|
|
FontFamily="Segoe UI"
|
|
- FontSize="14" Text="Oritation"></TextBlock>
|
|
|
|
|
|
+ FontSize="14" Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Oritation}"></TextBlock>
|
|
<ComboBox
|
|
<ComboBox
|
|
x:Name="cmbOritation"
|
|
x:Name="cmbOritation"
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
SelectionChanged="cmbOritation_SelectionChanged"
|
|
SelectionChanged="cmbOritation_SelectionChanged"
|
|
Width="155"
|
|
Width="155"
|
|
- Height="24" >
|
|
|
|
- <ComboBoxItem Content="Portrait" Tag="Portrait" IsSelected="True"></ComboBoxItem>
|
|
|
|
- <ComboBoxItem Content="Landscape" Tag="Landscape"></ComboBoxItem>
|
|
|
|
- <ComboBoxItem Content="Auto" Tag="Auto"></ComboBoxItem>
|
|
|
|
|
|
+ Height="24"
|
|
|
|
+ Loaded="cmbOritation_Loaded" >
|
|
|
|
+ <ComboBoxItem Tag="Portrait">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Portrait}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Tag="Landscape">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Landscape}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Tag="Auto">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Auto}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
</ComboBox>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
@@ -99,16 +108,24 @@
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Vertical">
|
|
<StackPanel Orientation="Vertical">
|
|
- <TextBlock Text="Page Range" Style="{StaticResource TitleTextBlockStyle}" Margin="0,8,0,8"></TextBlock>
|
|
|
|
- <RadioButton Margin="-8,0,0,8" Content="All Pages" GroupName="Page Range" x:Name="rdoAllPages" Tag="All" IsChecked="True" Click="rdoPageRange_Click"></RadioButton>
|
|
|
|
- <RadioButton Margin="-8,0,0,8" Content="Only Odd Pages" GroupName="Page Range" x:Name="rdoOddPages" Tag="Odd" Click="rdoPageRange_Click"></RadioButton>
|
|
|
|
- <RadioButton Margin="-8,0,0,8" Content="Only Even Pages" GroupName="Page Range" x:Name="rdoEvenPages" Tag="Even" Click="rdoPageRange_Click"></RadioButton>
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_PageRange}" Style="{StaticResource TitleTextBlockStyle}" Margin="0,8,0,8"></TextBlock>
|
|
|
|
+ <RadioButton Margin="-8,0,0,8" GroupName="Page Range" x:Name="rdoAllPages" Tag="All" IsChecked="True" Click="rdoPageRange_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_AllPages}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
|
|
+ <RadioButton Margin="-8,0,0,8" GroupName="Page Range" x:Name="rdoOddPages" Tag="Odd" Click="rdoPageRange_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_OnlyOdd}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
|
|
+ <RadioButton Margin="-8,0,0,8" GroupName="Page Range" x:Name="rdoEvenPages" Tag="Even" Click="rdoPageRange_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_OnlyEven}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
<StackPanel Orientation="Horizontal">
|
|
<StackPanel Orientation="Horizontal">
|
|
- <RadioButton Margin="-8,0,8,8" Content="Custom Pages" GroupName="Page Range" x:Name="rdoCustomPages" Tag="Custom" Click="rdoPageRange_Click"></RadioButton>
|
|
|
|
|
|
+ <RadioButton Margin="-8,0,8,8" GroupName="Page Range" x:Name="rdoCustomPages" Tag="Custom" Click="rdoPageRange_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_CustomPages}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
<TextBox Width="120" Height="24" Text="{Binding PageRangeText, UpdateSourceTrigger=PropertyChanged}"></TextBox>
|
|
<TextBox Width="120" Height="24" Text="{Binding PageRangeText, UpdateSourceTrigger=PropertyChanged}"></TextBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<CheckBox x:Name="chkReversePage" VerticalAlignment="Center" Click="chkReversePage_Click">
|
|
<CheckBox x:Name="chkReversePage" VerticalAlignment="Center" Click="chkReversePage_Click">
|
|
- <TextBlock Text=" Reverse page"></TextBlock>
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_ReversePage}"></TextBlock>
|
|
</CheckBox>
|
|
</CheckBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
@@ -118,22 +135,29 @@
|
|
<TextBlock
|
|
<TextBlock
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Margin="0,0,0,8"
|
|
Margin="0,0,0,8"
|
|
- Width="64"
|
|
|
|
- Text="Content" HorizontalAlignment="Left"></TextBlock>
|
|
|
|
|
|
+ Width="80"
|
|
|
|
+ Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Content}" HorizontalAlignment="Left"></TextBlock>
|
|
<ComboBox
|
|
<ComboBox
|
|
x:Name="cmbContent"
|
|
x:Name="cmbContent"
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
Style="{StaticResource ComboBoxStyle1}"
|
|
SelectionChanged="cmbContent_SelectionChanged"
|
|
SelectionChanged="cmbContent_SelectionChanged"
|
|
HorizontalAlignment="Left"
|
|
HorizontalAlignment="Left"
|
|
Width="220"
|
|
Width="220"
|
|
- Height="24">
|
|
|
|
- <ComboBoxItem Content="Document" Tag="Document"></ComboBoxItem>
|
|
|
|
- <ComboBoxItem Content="Document and Markups" Tag="Document and Markups" IsSelected="True"></ComboBoxItem>
|
|
|
|
- <ComboBoxItem Content="Document and Stamps" Tag="Document and Stamps"></ComboBoxItem>
|
|
|
|
|
|
+ Height="24"
|
|
|
|
+ Loaded="cmbContent_Loaded">
|
|
|
|
+ <ComboBoxItem Tag="Document">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_OnlyD}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Tag="Document and Markups">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_DaM}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
|
|
+ <ComboBoxItem Tag="Document and Stamps">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_DaS}"></TextBlock>
|
|
|
|
+ </ComboBoxItem>
|
|
</ComboBox>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Vertical" Margin="0,8,0,8">
|
|
<StackPanel Orientation="Vertical" Margin="0,8,0,8">
|
|
- <TextBlock Text="Size" Style="{StaticResource TitleTextBlockStyle}"></TextBlock>
|
|
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Size}" Style="{StaticResource TitleTextBlockStyle}"></TextBlock>
|
|
<Grid VerticalAlignment="Top">
|
|
<Grid VerticalAlignment="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="31*"/>
|
|
<ColumnDefinition Width="31*"/>
|
|
@@ -152,25 +176,41 @@
|
|
<RowDefinition Height="28"></RowDefinition>
|
|
<RowDefinition Height="28"></RowDefinition>
|
|
<RowDefinition Height="28"></RowDefinition>
|
|
<RowDefinition Height="28"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <RadioButton GroupName="SizeMode" VerticalAlignment="Center" Content="Auto adapt" Grid.ColumnSpan="2" IsChecked="True" Tag="AutoAdapt" Click="SizeMode_Click"/>
|
|
|
|
- <RadioButton GroupName="SizeMode" Grid.Row="1" VerticalAlignment="Center" Content="Actual size" Grid.ColumnSpan="2" Tag="ActualSize" Click="SizeMode_Click"></RadioButton>
|
|
|
|
|
|
+ <RadioButton GroupName="SizeMode" VerticalAlignment="Center" Grid.ColumnSpan="2" IsChecked="True" Tag="AutoAdapt" Click="SizeMode_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_AutoAdapt}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
|
|
+ <RadioButton GroupName="SizeMode" Grid.Row="1" VerticalAlignment="Center" Grid.ColumnSpan="2" Tag="ActualSize" Click="SizeMode_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_ActualSize}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Grid.ColumnSpan="2">
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Grid.ColumnSpan="2">
|
|
- <RadioButton GroupName="SizeMode" VerticalAlignment="Center" Content="Custom scale" Tag="CustomScale" Click="SizeMode_Click"></RadioButton>
|
|
|
|
|
|
+ <RadioButton GroupName="SizeMode" VerticalAlignment="Center" Tag="CustomScale" Click="SizeMode_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_CustomScale}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
<common:NumericUpDownControl x:Name="nmrcScale" Minimum="1" Maximum="1000" Height="24" Margin="16,0,0,0" Text="{Binding SizeScale, Mode=TwoWay}"></common:NumericUpDownControl>
|
|
<common:NumericUpDownControl x:Name="nmrcScale" Minimum="1" Maximum="1000" Height="24" Margin="16,0,0,0" Text="{Binding SizeScale, Mode=TwoWay}"></common:NumericUpDownControl>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="3" VerticalAlignment="Top" >
|
|
<StackPanel Grid.Row="3" VerticalAlignment="Top" >
|
|
- <CheckBox Name="chkDuplex" Content="Duplex Printing" Margin="0,8,0,8" Click="chkDuplex_Click"></CheckBox>
|
|
|
|
- <RadioButton GroupName="Flip" x:Name="rdoLongEdge" Content="Flip On Long Edge" IsChecked="True" IsEnabled="{Binding IsChecked, ElementName=chkDuplex, Converter={StaticResource BoolToVisibleConverter}}" Margin="0,0,0,8" Click="rdoDuplex_Click" ></RadioButton>
|
|
|
|
- <RadioButton GroupName="Flip" x:Name="rdoShortEdge" Content="Flip On Short Edge" Click="rdoDuplex_Click" IsEnabled="{Binding IsChecked, ElementName=chkDuplex, Converter={StaticResource BoolToVisibleConverter}}"></RadioButton>
|
|
|
|
|
|
+ <CheckBox Name="chkDuplex" Margin="0,8,0,8" Tag="" Click="chkDuplex_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_Duplex}"></TextBlock>
|
|
|
|
+ </CheckBox>
|
|
|
|
+ <RadioButton GroupName="Flip" Tag="" x:Name="rdoLongEdge" IsChecked="True" IsEnabled="{Binding IsChecked, ElementName=chkDuplex, Converter={StaticResource BoolToVisibleConverter}}" Margin="0,0,0,8" Click="rdoDuplex_Click" >
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_LongEdge}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
|
|
+ <RadioButton GroupName="Flip" x:Name="rdoShortEdge" Click="rdoDuplex_Click" IsEnabled="{Binding IsChecked, ElementName=chkDuplex, Converter={StaticResource BoolToVisibleConverter}}">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Printer_ShortEdge}"></TextBlock>
|
|
|
|
+ </RadioButton>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Grid.Column="2" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<StackPanel Grid.Column="2" Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
- <Button x:Name="btnConfirm" Height="36" Width="108" Click="btnConfirm_Click"></Button>
|
|
|
|
- <Button x:Name="btnCancel" Height="36" Width="108" Margin="10" Click="btnCancel_Click"></Button>
|
|
|
|
|
|
+ <Button x:Name="btnConfirm" Height="36" Width="108" Click="btnConfirm_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Button_OK}"></TextBlock>
|
|
|
|
+ </Button>
|
|
|
|
+ <Button x:Name="btnCancel" Height="36" Width="108" Margin="10" Click="btnCancel_Click">
|
|
|
|
+ <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Button_Cancel}"></TextBlock>
|
|
|
|
+ </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|
|
</Window>
|