HomePagePrinterModMultipleContent.xaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModMultipleContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. prism:ViewModelLocator.AutoWireViewModel="True"
  6. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:homepageprinter="clr-namespace:PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  10. d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModMultipleContentViewModel}"
  11. mc:Ignorable="d"
  12. d:DesignHeight="216"
  13. d:DesignWidth="466">
  14. <Grid VerticalAlignment="Top" Height="216" >
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="88"></RowDefinition>
  17. <RowDefinition Height="68"></RowDefinition>
  18. <RowDefinition Height="38"></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <Border Background="#F7F8FA" CornerRadius="4" Height="88">
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition ></RowDefinition>
  24. <RowDefinition ></RowDefinition>
  25. </Grid.RowDefinitions>
  26. <StackPanel Grid.Row="0" Orientation="Horizontal">
  27. <TextBlock Text="Pages per sheet:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  28. <ComboBox Name="PageMatrixCmb" Height="32" Width="196" ItemsSource="{Binding PageMatrixList}" SelectedIndex="{Binding PageMatrixIndex}">
  29. <i:Interaction.Triggers>
  30. <i:EventTrigger>
  31. <i:InvokeCommandAction Command="{Binding SetPageMatrixCommand}" CommandParameter="{Binding ElementName=PageMatrixCmb}"></i:InvokeCommandAction>
  32. </i:EventTrigger>
  33. </i:Interaction.Triggers>
  34. </ComboBox>
  35. <StackPanel Grid.Row="0" Orientation="Horizontal" IsEnabled="{Binding EnableCustomiseMatrix,UpdateSourceTrigger=PropertyChanged, Mode=OneWay}">
  36. <TextBox Style="{StaticResource Print_normalTxtStyle}" VerticalContentAlignment="Center" Height="32" Width="53" Margin="16,0,8,0" Text="{Binding HorizontalPageNumber, UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}">
  37. <TextBox.InputBindings>
  38. <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
  39. </TextBox.InputBindings>
  40. </TextBox>
  41. <TextBlock Text="X" VerticalAlignment="Center" Foreground="{StaticResource color.sys.text.neutral.lv3}"></TextBlock>
  42. <TextBox Style="{StaticResource Print_normalTxtStyle}" VerticalContentAlignment="Center" Height="32" Width="53" Margin="8,0,0,0" Text="{Binding VerticalPageNumber, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
  43. <TextBox.InputBindings>
  44. <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
  45. </TextBox.InputBindings>
  46. </TextBox>
  47. </StackPanel>
  48. </StackPanel>
  49. <StackPanel Grid.Row="1" Orientation="Horizontal">
  50. <TextBlock Text="Page Order:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  51. <ComboBox Name="PageOrderCmb" Height="32" Width="196" ItemsSource="{Binding PageOrderList}" SelectedIndex="{Binding PageOrderIndex}">
  52. <i:Interaction.Triggers>
  53. <i:EventTrigger>
  54. <i:InvokeCommandAction Command="{Binding SetPageOrderCommand}" CommandParameter="{Binding ElementName=PageOrderCmb}"></i:InvokeCommandAction>
  55. </i:EventTrigger>
  56. </i:Interaction.Triggers>
  57. </ComboBox>
  58. </StackPanel>
  59. </Grid>
  60. </Border>
  61. <Grid Grid.Row="1" Margin="0,8,0,0">
  62. <Border Background="#F7F8FA" CornerRadius="4" Grid.Row="0">
  63. <StackPanel Orientation="Vertical">
  64. <CheckBox Margin="9,12" Name="DuplexChk" Command="{Binding UnlockDuplexCommand}" CommandParameter="{Binding ElementName=DuplexChk}">
  65. <TextBlock Text="Duplex Printing"></TextBlock>
  66. </CheckBox>
  67. <StackPanel Orientation="Horizontal" IsEnabled="{Binding ElementName=DuplexChk, Path=IsChecked}">
  68. <RadioButton Name="DuplexModLongEdgeRdo" Margin="12,0,17,0" IsChecked="{Binding IsDuplexModLongEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModLongEdgeRdo}">
  69. <TextBlock Text="Flip On Long Edge"></TextBlock>
  70. </RadioButton>
  71. <RadioButton Name="DuplexModShortEdgeRdo" IsChecked="{Binding IsDuplexModShortEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModShortEdgeRdo}">
  72. <TextBlock Text="Flip On Short Edge"></TextBlock>
  73. </RadioButton>
  74. </StackPanel>
  75. </StackPanel>
  76. </Border>
  77. </Grid>
  78. <Grid Grid.Row="2" Margin="0,16,0,0">
  79. <StackPanel Orientation="Horizontal">
  80. <CheckBox Name="AutoRotationChk" VerticalAlignment="Center" Command="{Binding SetAutoRotateCommand}" IsChecked="{Binding IsAutoRotate}">
  81. <TextBlock Text="Auto-rotate pages in each sheet" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  82. </CheckBox>
  83. </StackPanel>
  84. </Grid>
  85. </Grid>
  86. </UserControl>