HomePagePrinterDialog.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. d:DesignHeight="650"
  10. d:DesignWidth="903"
  11. mc:Ignorable="d">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="50"></RowDefinition>
  15. <RowDefinition Height="*"></RowDefinition>
  16. <RowDefinition Height="63"></RowDefinition>
  17. </Grid.RowDefinitions>
  18. <TextBlock Grid.Row="0" Text="打印" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
  19. <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="537">
  20. <Grid>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="2*"/>
  23. <ColumnDefinition Width="4*"/>
  24. </Grid.ColumnDefinitions>
  25. <Grid Grid.Column="0">
  26. <Border Height="430" Width="269" Background="LightGray" HorizontalAlignment="Center" VerticalAlignment="Center">
  27. <Viewbox Width="210" Height="297" Margin="0,36,0,0">
  28. <Image Name="Image"></Image>
  29. </Viewbox>
  30. </Border>
  31. <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  32. <Button Name="PrePage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  33. <TextBlock Text="&lt;" VerticalAlignment="Center"></TextBlock>
  34. </Button>
  35. <TextBox x:Name="CurrentPage" Width="30" Height="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,5,0" Text="1" ></TextBox>
  36. <TextBlock Text="of" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0"></TextBlock>
  37. <TextBlock x:Name="PageIndex" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBlock>
  38. <Button Name="NextPage" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  39. <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
  40. </Button>
  41. </StackPanel>
  42. </Grid>
  43. <Grid Grid.Column="1">
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="1.2*"/>
  46. <RowDefinition Height="0.9*"/>
  47. <RowDefinition Height="2*"/>
  48. </Grid.RowDefinitions>
  49. <Grid Grid.Row="0">
  50. <StackPanel Orientation="Vertical">
  51. <StackPanel Orientation="Horizontal" Margin="0,60,0,0">
  52. <StackPanel Orientation="Horizontal">
  53. <TextBlock Text="打印机: " Height="20" Width="56" ></TextBlock>
  54. <ComboBox Width="277" Height="32" Margin="8,0,0,0" ItemsSource="{Binding PrinterNameList}" SelectedIndex="0"></ComboBox>
  55. </StackPanel>
  56. <Button Content="页面设置" Height="32" Width="91" Margin="31,0,0,0"/>
  57. </StackPanel>
  58. <StackPanel Orientation="Horizontal" Margin="0,19,0,0">
  59. <StackPanel Orientation="Horizontal">
  60. <TextBlock Text="预置: " Height="20" Width="42"></TextBlock>
  61. <ComboBox Width="139" Height="32" Margin="22,0,0,0"></ComboBox>
  62. </StackPanel>
  63. <StackPanel Orientation="Horizontal" Margin="28,0,0,0">
  64. <TextBlock Height="20" Width="42" Text="份数: "></TextBlock>
  65. <cus:NumericUpDown Height="32" Width="76" Margin="15,0,0,0" ></cus:NumericUpDown>
  66. </StackPanel>
  67. <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
  68. <TextBlock Text="黑白色"/>
  69. </CheckBox>
  70. <CheckBox VerticalAlignment="Center" Margin="27,0,0,0">
  71. <TextBlock Text="双面打印"/>
  72. </CheckBox>
  73. </StackPanel>
  74. </StackPanel>
  75. </Grid>
  76. <Grid Grid.Row="1">
  77. <StackPanel Orientation="Vertical">
  78. <TextBlock Text="打印设置" FontWeight="ExtraBlack"/>
  79. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  80. <StackPanel Orientation="Horizontal">
  81. <TextBlock Text="页面范围: " Height="20" Width="70"></TextBlock>
  82. <cus:WritableComboBox Width="190" Height="32" Margin="10,0,0,0"></cus:WritableComboBox>
  83. </StackPanel>
  84. <StackPanel Orientation="Horizontal" Margin="35,0,0,0">
  85. <TextBlock Text="打印方向: " Height="20" Width="70"></TextBlock>
  86. <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintDirectionList}" SelectedIndex="0"></ComboBox>
  87. </StackPanel>
  88. </StackPanel>
  89. <StackPanel Orientation="Horizontal" Margin="0,12,0,0">
  90. <StackPanel Orientation="Horizontal">
  91. <TextBlock Text="打印内容: " Height="20" Width="70"></TextBlock>
  92. <ComboBox Width="190" Height="32" Margin="10,0,0,0" ItemsSource="{Binding PrintContentList}" SelectedIndex="0"></ComboBox>
  93. </StackPanel>
  94. <CheckBox Margin="35,0,0,0" VerticalAlignment="Center">
  95. <TextBlock Text="逆页序打印"/>
  96. </CheckBox>
  97. </StackPanel>
  98. </StackPanel>
  99. </Grid>
  100. <Grid Grid.Row="2">
  101. <StackPanel Height="auto" Orientation="Vertical">
  102. <StackPanel Orientation="Horizontal">
  103. <TextBlock Text="调整页面大小和处理页面" FontWeight="ExtraBlack"/>
  104. <Button Content="?" FontSize="6" Width="16" Height="16" Margin="7,0,0,0"></Button>
  105. </StackPanel>
  106. <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
  107. <Button Name="ModSize" Background="WhiteSmoke" Width="126" Height="32" Margin="8,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModSize}">
  108. <Border>
  109. <TextBlock Text="大小"></TextBlock>
  110. </Border>
  111. </Button>
  112. <Button Name="ModPoster" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModPoster}">
  113. <Border>
  114. <TextBlock Text="海报"></TextBlock>
  115. </Border>
  116. </Button>
  117. <Button Name="ModMutiple" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,25,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModMutiple}">
  118. <Border>
  119. <TextBlock Text="多页"></TextBlock>
  120. </Border>
  121. </Button>
  122. <Button Name="ModBooklet" Background="WhiteSmoke" Width="126" Height="32" Margin="0,0,10,0" Command="{Binding DelegateChangePrintModCommand}" CommandParameter="{Binding ElementName=ModBooklet}">
  123. <Border>
  124. <TextBlock Text="小册子"></TextBlock>
  125. </Border>
  126. </Button>
  127. </StackPanel>
  128. <StackPanel>
  129. <Grid>
  130. <Grid.ColumnDefinitions>
  131. <ColumnDefinition Width="69*"/>
  132. <ColumnDefinition Width="50*"/>
  133. <ColumnDefinition Width="483*"/>
  134. </Grid.ColumnDefinitions>
  135. <ContentControl Height="180" Margin="12,12,12,12" x:Name="PrintMod" prism:RegionManager.RegionName="{Binding PrintModRegionName}" Visibility="{Binding PrintModVisible}" Grid.ColumnSpan="3"/>
  136. </Grid>
  137. </StackPanel>
  138. </StackPanel>
  139. </Grid>
  140. </Grid>
  141. </Grid>
  142. </Border>
  143. </Grid>
  144. </UserControl>