HomePagePrinterModBookletContent.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModBookletContent"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:homepageprinter="clr-namespace:PDF_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter" d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModBookletContentViewModel}"
  8. mc:Ignorable="d"
  9. d:DesignHeight="166"
  10. d:DesignWidth="466">
  11. <Grid Height="166" VerticalAlignment="Top">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="128*"></RowDefinition>
  14. <RowDefinition Height="38*"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <Border Background="#F7F8FA" CornerRadius="4" Height="128">
  17. <Grid Grid.Row="0">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="1*"></RowDefinition>
  20. <RowDefinition Height="1*"></RowDefinition>
  21. <RowDefinition Height="1*"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <StackPanel Grid.Row="0" Orientation="Horizontal">
  24. <TextBlock FontFamily="Segoe UI" FontSize="14" Text="Booklet subset:" Width="94" Margin="0,0,16,0" VerticalAlignment="Center"></TextBlock>
  25. <ComboBox Height="32" Width="265" ItemsSource="{Binding SubsetList}" SelectedIndex="{Binding SubsetIndex}"></ComboBox>
  26. </StackPanel>
  27. <StackPanel Grid.Row="1" Orientation="Horizontal">
  28. <TextBlock Text="Sheets from:" FontFamily="Segoe UI" FontSize="14" Width="94" Margin="0,0,16,0" VerticalAlignment="Center" ></TextBlock>
  29. <TextBox Name="PaperFromTxt" Height="32" Width="50" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding PaperFrom,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
  30. <TextBox.InputBindings>
  31. <KeyBinding Command="{Binding SetSheetCommand}" CommandParameter="{Binding ElementName=PaperFromTxt}" Key="Return"></KeyBinding>
  32. </TextBox.InputBindings>
  33. </TextBox>
  34. <TextBlock FontFamily="Segoe UI" FontSize="14" Text="to" VerticalAlignment="Center" Margin="8,0,8,0" ></TextBlock>
  35. <TextBox Name="PaperToTxt" Height="32" Width="50" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding PaperTo,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
  36. <TextBox.InputBindings>
  37. <KeyBinding Command="{Binding SetSheetCommand}" CommandParameter="{Binding ElementName=PaperToTxt}" Key="Return"></KeyBinding>
  38. </TextBox.InputBindings>
  39. </TextBox>
  40. </StackPanel>
  41. <StackPanel Grid.Row="2" Orientation="Horizontal">
  42. <TextBlock Text="Binding:" FontFamily="Segoe UI" FontSize="14" VerticalAlignment="Center" Width="94" Margin="0,0,16,0" ></TextBlock>
  43. <ComboBox Height="32" Width="265" ItemsSource="{Binding BindingList}" SelectedIndex="{Binding BindingIndex}"></ComboBox>
  44. </StackPanel>
  45. </Grid>
  46. </Border>
  47. <StackPanel Grid.Row="3" Orientation="Horizontal" Margin="0,16,0,0">
  48. <CheckBox VerticalAlignment="Center" Command="{Binding SetAutoRotateCommand}" IsChecked="{Binding IsAutoRotate}"></CheckBox>
  49. <TextBlock Text="Auto-rotate pages in each sheet" FontFamily="Segoe UI" FontSize="14" VerticalAlignment="Center" Margin="11,0,0,0"></TextBlock>
  50. </StackPanel>
  51. </Grid>
  52. </UserControl>