|
@@ -1,139 +1,139 @@
|
|
|
-<UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterDialog"
|
|
|
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
|
|
|
- xmlns:prism="http://prismlibrary.com/"
|
|
|
- prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
- d:DesignHeight="650"
|
|
|
- d:DesignWidth="903"
|
|
|
- mc:Ignorable="d">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="50"></RowDefinition>
|
|
|
- <RowDefinition Height="*"></RowDefinition>
|
|
|
- <RowDefinition Height="63"></RowDefinition>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <TextBlock Grid.Row="0" Text="打印" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
|
|
|
- <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="537">
|
|
|
- <Grid>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="2*"/>
|
|
|
- <ColumnDefinition Width="4*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid Grid.Column="0">
|
|
|
- <Border Height="430" Width="269" Background="LightGray" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
- <Viewbox Width="210" Height="297" Margin="0,36,0,0">
|
|
|
- <Image Name="Image"></Image>
|
|
|
- </Viewbox>
|
|
|
- </Border>
|
|
|
- <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
|
|
|
- <Button Name="PrePage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
|
|
|
- <TextBlock Text="<" VerticalAlignment="Center"></TextBlock>
|
|
|
- </Button>
|
|
|
- <TextBox x:Name="CurrentPage" Width="30" Height="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,5,0" Text="1" ></TextBox>
|
|
|
- <TextBlock Text="of" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0"></TextBlock>
|
|
|
- <TextBlock x:Name="PageIndex" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBlock>
|
|
|
- <Button Name="NextPage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
|
|
|
- <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Column="1">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="1.2*"/>
|
|
|
- <RowDefinition Height="0.9*"/>
|
|
|
- <RowDefinition Height="2*"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <Grid Grid.Row="0">
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,60,0,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="打印机: " Height="20" Width="56" ></TextBlock>
|
|
|
- <ComboBox Width="277" Height="32" Margin="8,0,0,0" ItemsSource="{Binding PrinterNameList}" SelectedIndex="0"></ComboBox>
|
|
|
- </StackPanel>
|
|
|
- <Button Content="页面设置" Height="32" Width="91" Margin="31,0,0,0"/>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,19,0,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="预置: " Height="20" Width="42"></TextBlock>
|
|
|
- <ComboBox Width="139" Height="32" Margin="22,0,0,0"></ComboBox>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="28,0,0,0">
|
|
|
- <TextBlock Height="20" Width="42" Text="份数: "></TextBlock>
|
|
|
- <cus:NumericUpDown Height="32" Width="76" Margin="15,0,0,0" ></cus:NumericUpDown>
|
|
|
- </StackPanel>
|
|
|
- <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
|
|
|
- <TextBlock Text="黑白色"/>
|
|
|
- </CheckBox>
|
|
|
- <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
|
|
|
- <TextBlock Text="双面打印"/>
|
|
|
- </CheckBox>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="1">
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
- <TextBlock Text="打印设置" FontWeight="ExtraBlack"/>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="页面范围: " Height="20" Width="70"></TextBlock>
|
|
|
- <cus:WritableComboBox Width="190" Height="32" Margin="10,0,0,0"></cus:WritableComboBox>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="35,0,0,0">
|
|
|
- <TextBlock Text="打印方向: " Height="20" Width="70"></TextBlock>
|
|
|
- <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintDirectionList}" SelectedIndex="0"></ComboBox>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,12,0,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="打印内容: " Height="20" Width="70"></TextBlock>
|
|
|
- <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintContentList}" SelectedIndex="0"></ComboBox>
|
|
|
- </StackPanel>
|
|
|
- <CheckBox Margin="35,0,0,0" VerticalAlignment="Center">
|
|
|
- <TextBlock Text="逆页序打印"/>
|
|
|
- </CheckBox>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <Grid Grid.Row="2">
|
|
|
- <StackPanel Height="auto" Orientation="Vertical">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="调整页面大小和处理页面" FontWeight="ExtraBlack"/>
|
|
|
- <Button Content="?" FontSize="6" Width="16" Height="16" Margin="7,0,0,0"></Button>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
|
|
- <Button Name="ModSize" Background="WhiteSmoke" Width="126" Height="32" Margin="8,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModSize}">
|
|
|
- <Border>
|
|
|
- <TextBlock Text="大小"></TextBlock>
|
|
|
- </Border>
|
|
|
- </Button>
|
|
|
- <Button Name="ModPoster" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModPoster}">
|
|
|
- <Border>
|
|
|
- <TextBlock Text="海报"></TextBlock>
|
|
|
- </Border>
|
|
|
- </Button>
|
|
|
- <Button Name="ModMutiple" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModMutiple}">
|
|
|
- <Border>
|
|
|
- <TextBlock Text="多页"></TextBlock>
|
|
|
- </Border>
|
|
|
- </Button>
|
|
|
- <Button Name="ModBooklet" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,10,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModBooklet}">
|
|
|
- <Border>
|
|
|
- <TextBlock Text="小册子"></TextBlock>
|
|
|
- </Border>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel>
|
|
|
- <Grid>
|
|
|
- <ContentControl Height="180" Margin="12" x:Name="PrintMod" prism:RegionManager.RegionName="{Binding PrintModRegionName}" Visibility="{Binding PrintModVisible}"/>
|
|
|
- </Grid>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
- </Grid>
|
|
|
+<UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterDialog"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:cus="clr-namespace:PDF_Office.CustomControl"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ d:DesignHeight="650"
|
|
|
+ d:DesignWidth="903"
|
|
|
+ mc:Ignorable="d">
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="50"></RowDefinition>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ <RowDefinition Height="63"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Grid.Row="0" Text="打印" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
|
|
|
+ <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="537">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="2*"/>
|
|
|
+ <ColumnDefinition Width="4*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Grid.Column="0">
|
|
|
+ <Border Height="430" Width="269" Background="LightGray" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Viewbox Width="210" Height="297" Margin="0,36,0,0">
|
|
|
+ <Image Name="Image"></Image>
|
|
|
+ </Viewbox>
|
|
|
+ </Border>
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
|
|
|
+ <Button Name="PrePage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
|
|
|
+ <TextBlock Text="<" VerticalAlignment="Center"></TextBlock>
|
|
|
+ </Button>
|
|
|
+ <TextBox x:Name="CurrentPage" Width="30" Height="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,5,0" Text="1" ></TextBox>
|
|
|
+ <TextBlock Text="of" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0"></TextBlock>
|
|
|
+ <TextBlock x:Name="PageIndex" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBlock>
|
|
|
+ <Button Name="NextPage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
|
|
|
+ <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="1.2*"/>
|
|
|
+ <RowDefinition Height="0.9*"/>
|
|
|
+ <RowDefinition Height="2*"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,60,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="打印机: " Height="20" Width="56" ></TextBlock>
|
|
|
+ <ComboBox Width="277" Height="32" Margin="8,0,0,0" ItemsSource="{Binding PrinterNameList}" SelectedIndex="0"></ComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ <Button Content="页面设置" Height="32" Width="91" Margin="31,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,19,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="预置: " Height="20" Width="42"></TextBlock>
|
|
|
+ <ComboBox Width="139" Height="32" Margin="22,0,0,0"></ComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="28,0,0,0">
|
|
|
+ <TextBlock Height="20" Width="42" Text="份数: "></TextBlock>
|
|
|
+ <cus:NumericUpDown Height="32" Width="76" Margin="15,0,0,0" ></cus:NumericUpDown>
|
|
|
+ </StackPanel>
|
|
|
+ <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
|
|
|
+ <TextBlock Text="黑白色"/>
|
|
|
+ </CheckBox>
|
|
|
+ <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
|
|
|
+ <TextBlock Text="双面打印"/>
|
|
|
+ </CheckBox>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <TextBlock Text="打印设置" FontWeight="ExtraBlack"/>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="页面范围: " Height="20" Width="70"></TextBlock>
|
|
|
+ <cus:WritableComboBox Width="190" Height="32" Margin="10,0,0,0"></cus:WritableComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="35,0,0,0">
|
|
|
+ <TextBlock Text="打印方向: " Height="20" Width="70"></TextBlock>
|
|
|
+ <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintDirectionList}" SelectedIndex="0"></ComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,12,0,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="打印内容: " Height="20" Width="70"></TextBlock>
|
|
|
+ <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintContentList}" SelectedIndex="0"></ComboBox>
|
|
|
+ </StackPanel>
|
|
|
+ <CheckBox Margin="35,0,0,0" VerticalAlignment="Center">
|
|
|
+ <TextBlock Text="逆页序打印"/>
|
|
|
+ </CheckBox>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <StackPanel Height="auto" Orientation="Vertical">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <TextBlock Text="调整页面大小和处理页面" FontWeight="ExtraBlack"/>
|
|
|
+ <Button Content="?" FontSize="6" Width="16" Height="16" Margin="7,0,0,0"></Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
|
|
|
+ <Button Name="ModSize" Background="WhiteSmoke" Width="126" Height="32" Margin="8,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModSize}">
|
|
|
+ <Border>
|
|
|
+ <TextBlock Text="大小"></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </Button>
|
|
|
+ <Button Name="ModPoster" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModPoster}">
|
|
|
+ <Border>
|
|
|
+ <TextBlock Text="海报"></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </Button>
|
|
|
+ <Button Name="ModMutiple" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModMutiple}">
|
|
|
+ <Border>
|
|
|
+ <TextBlock Text="多页"></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </Button>
|
|
|
+ <Button Name="ModBooklet" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,10,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModBooklet}">
|
|
|
+ <Border>
|
|
|
+ <TextBlock Text="小册子"></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel>
|
|
|
+ <Grid>
|
|
|
+ <ContentControl Height="180" Margin="12" x:Name="PrintMod" prism:RegionManager.RegionName="{Binding PrintModRegionName}" Visibility="{Binding PrintModVisible}"/>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
</UserControl>
|