HomePagePrinterModMultipleContent.xaml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <UserControl x:Class="PDF_Office.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_Office.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_Office.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="126"
  13. d:DesignWidth="466">
  14. <Grid VerticalAlignment="Top" Height="126" >
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="88*"></RowDefinition>
  17. <RowDefinition Height="38*"></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <Border Background="#F7F8FA" CornerRadius="4" Height="88">
  20. <Grid Grid.Row="0">
  21. <Grid.RowDefinitions>
  22. <RowDefinition ></RowDefinition>
  23. <RowDefinition ></RowDefinition>
  24. </Grid.RowDefinitions>
  25. <StackPanel Grid.Row="0" Orientation="Horizontal">
  26. <TextBlock Text="Pages per sheet:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  27. <ComboBox Name="PageMatrixCmb" Height="32" Width="196" ItemsSource="{Binding PageMatrixList}" SelectedIndex="{Binding PageMatrixIndex}">
  28. <i:Interaction.Triggers>
  29. <i:EventTrigger>
  30. <i:InvokeCommandAction Command="{Binding SetPageMatrixCommand}" CommandParameter="{Binding ElementName=PageMatrixCmb}"></i:InvokeCommandAction>
  31. </i:EventTrigger>
  32. </i:Interaction.Triggers>
  33. </ComboBox>
  34. <StackPanel Grid.Row="0" Orientation="Horizontal" IsEnabled="{Binding EnableCustomiseMatrix, Mode=OneWay}">
  35. <TextBox Height="32" Width="53" Margin="16,0,8,0" Text="{Binding HorizontalPageNumber, Mode=TwoWay}">
  36. <TextBox.InputBindings>
  37. <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
  38. </TextBox.InputBindings>
  39. </TextBox>
  40. <TextBlock Text="X" VerticalAlignment="Center"></TextBlock>
  41. <TextBox Height="32" Width="53" Margin="8,0,0,0" Text="{Binding VerticalPageNumber, Mode=TwoWay}">
  42. <TextBox.InputBindings>
  43. <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
  44. </TextBox.InputBindings>
  45. </TextBox>
  46. </StackPanel>
  47. </StackPanel>
  48. <StackPanel Grid.Row="1" Orientation="Horizontal">
  49. <TextBlock Text="Page Order:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  50. <ComboBox Name="PageOrderCmb" Height="32" Width="196" ItemsSource="{Binding PageOrderList}" SelectedIndex="{Binding PageOrderIndex}">
  51. <i:Interaction.Triggers>
  52. <i:EventTrigger>
  53. <i:InvokeCommandAction Command="{Binding SetPageOrderCommand}" CommandParameter="{Binding ElementName=PageOrderCmb}"></i:InvokeCommandAction>
  54. </i:EventTrigger>
  55. </i:Interaction.Triggers>
  56. </ComboBox>
  57. </StackPanel>
  58. </Grid>
  59. </Border>
  60. <Grid Grid.Row="1" Margin="0,16,0,0">
  61. <StackPanel Orientation="Horizontal">
  62. <CheckBox Name="AutoRotationChk" VerticalAlignment="Center" Command="{Binding SetAutoRotateCommand}">
  63. <TextBlock Text="Auto-rotate pages in each sheet" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  64. </CheckBox>
  65. </StackPanel>
  66. </Grid>
  67. </Grid>
  68. </UserControl>