HomePagePrinterModSizeContent.xaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModSizeContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:cus="clr-namespace:PDF_Office.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_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter"
  10. d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModSizeContentViewModel}"
  11. mc:Ignorable="d"
  12. d:DesignHeight="108"
  13. d:DesignWidth="466">
  14. <Border Background="#F7F8FA" CornerRadius="4" Height="108">
  15. <Grid VerticalAlignment="Top" Height="108">
  16. <Grid.RowDefinitions>
  17. <RowDefinition></RowDefinition>
  18. <RowDefinition></RowDefinition>
  19. <RowDefinition></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <Grid Grid.Row="0" Margin="0,8,0,8">
  22. <RadioButton Name="StatusAdaptiveRdo" VerticalAlignment="Center" GroupName="ModSize" IsChecked="True" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusAdaptiveRdo}">
  23. <TextBlock Text="Auto adapt" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  24. </RadioButton>
  25. </Grid>
  26. <Grid Grid.Row="1">
  27. <RadioButton Name="StatusActuralRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusActuralRdo}">
  28. <TextBlock Text="Actual size" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  29. </RadioButton>
  30. </Grid>
  31. <Grid Grid.Row="2" Margin="0,0,0,8" Height="40" VerticalAlignment="Center">
  32. <RadioButton Name="StatusCustomizedRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusCustomizedRdo}">
  33. <TextBlock Text="Custom scale:" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  34. </RadioButton>
  35. <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=CustomRatioBtn, Path=IsChecked}"></cus:NumericUpDown>
  36. </Grid>
  37. </Grid>
  38. </Border>
  39. </UserControl>