HomePagePrinterModSizeContent.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModSizeContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:prism="http://prismlibrary.com/"
  6. prism:ViewModelLocator.AutoWireViewModel="True"
  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"
  10. d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModSizeContentViewModel}"
  11. mc:Ignorable="d"
  12. d:DesignHeight="184"
  13. d:DesignWidth="466">
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="108"></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <Border Background="#F7F8FA" CornerRadius="4" Grid.Row="0">
  20. <Grid VerticalAlignment="Top" Height="108">
  21. <Grid.RowDefinitions>
  22. <RowDefinition></RowDefinition>
  23. <RowDefinition></RowDefinition>
  24. <RowDefinition></RowDefinition>
  25. </Grid.RowDefinitions>
  26. <Grid Grid.Row="0" Margin="0,8,0,8">
  27. <RadioButton Name="StatusAdaptiveRdo" VerticalAlignment="Center" GroupName="ModSize" IsChecked="True" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusAdaptiveRdo}">
  28. <TextBlock Text="Auto adapt" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  29. </RadioButton>
  30. </Grid>
  31. <Grid Grid.Row="1">
  32. <RadioButton Name="StatusActuralRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusActuralRdo}">
  33. <TextBlock Text="Actual size" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  34. </RadioButton>
  35. </Grid>
  36. <Grid Grid.Row="2" Margin="0,0,0,8" Height="40" VerticalAlignment="Center">
  37. <RadioButton Name="StatusCustomizedRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusCustomizedRdo}">
  38. <TextBlock Text="Custom scale:" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  39. </RadioButton>
  40. <cus:NumericUpDown x:Name="CustomRatioUpDown" Width="90" Height="32" Margin="15,0,0,0" Loaded="CustomRatioUpDown_Loaded" Text="{Binding DisplayRatio, Mode=TwoWay}" IsEnabled="{Binding ElementName=StatusCustomizedRdo, Path=IsChecked}" Minimum="20" Maximum="200"></cus:NumericUpDown>
  41. </Grid>
  42. </Grid>
  43. </Border>
  44. <Grid Grid.Row="1" Margin="0,8,0,0">
  45. <Border Background="#F7F8FA" CornerRadius="4" Grid.Row="0">
  46. <StackPanel Orientation="Vertical">
  47. <CheckBox Margin="9,12" Name="DuplexChk" Command="{Binding UnlockDuplexCommand}" CommandParameter="{Binding ElementName=DuplexChk}">
  48. <TextBlock Text="Duplex Printing"></TextBlock>
  49. </CheckBox>
  50. <StackPanel Orientation="Horizontal" IsEnabled="{Binding ElementName=DuplexChk, Path=IsChecked}">
  51. <RadioButton Name="DuplexModLongEdgeRdo" Margin="12,0,17,0" IsChecked="{Binding IsDuplexModLongEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModLongEdgeRdo}">
  52. <TextBlock Text="Flip On Long Edge"></TextBlock>
  53. </RadioButton>
  54. <RadioButton Name="DuplexModShortEdgeRdo" IsChecked="{Binding IsDuplexModShortEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModShortEdgeRdo}">
  55. <TextBlock Text="Flip On Short Edge"></TextBlock>
  56. </RadioButton>
  57. </StackPanel>
  58. </StackPanel>
  59. </Border>
  60. </Grid>
  61. </Grid>
  62. </UserControl>