HomePagePrinterModSizeContent.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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="180"
  13. d:DesignWidth="300">
  14. <Grid Height="120" VerticalAlignment="Top">
  15. <Grid.RowDefinitions>
  16. <RowDefinition></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. <RowDefinition></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <Grid Grid.Row="0">
  21. <RadioButton VerticalAlignment="Center" IsChecked="{Binding IsStatusAdaptive, Mode=TwoWay}" Command="{Binding SetStatusAdaptiveCommand}">
  22. <TextBlock Text="自动适应"></TextBlock>
  23. </RadioButton>
  24. </Grid>
  25. <Grid Grid.Row="1">
  26. <RadioButton VerticalAlignment="Center" IsChecked="{Binding IsStatusActural, Mode=TwoWay}" Command="{Binding SetStatusActuralCommand}">
  27. <TextBlock Text="实际大小"></TextBlock>
  28. </RadioButton>
  29. </Grid>
  30. <Grid Grid.Row="2">
  31. <RadioButton Name="CustomRatioBtn" VerticalAlignment="Center" IsChecked="{Binding IsStatusCustomized,Mode=TwoWay}" Command="{Binding SetStatusCustomizedCommand}">
  32. <TextBlock Text="自定义显示比例"></TextBlock>
  33. </RadioButton>
  34. <cus:NumericUpDown x:Name="CustomRatioUpDown" Width="73" Height="32" Margin="15,0,0,2" Loaded="CustomRatioUpDown_Loaded" Text="{Binding DisplayRatio, Mode=TwoWay}" IsEnabled="{Binding ElementName=CustomRatioBtn, Path=IsChecked}"></cus:NumericUpDown>
  35. </Grid>
  36. </Grid>
  37. </UserControl>