12345678910111213141516171819202122232425262728293031323334353637 |
- <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModSizeContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- 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:HomePagePrinterModSizeContentViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="180"
- d:DesignWidth="300">
- <Grid Height="120" VerticalAlignment="Top">
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <RadioButton VerticalAlignment="Center" IsChecked="{Binding IsStatusAdaptive, Mode=TwoWay}" Command="{Binding SetStatusAdaptiveCommand}">
- <TextBlock Text="自动适应"></TextBlock>
- </RadioButton>
- </Grid>
- <Grid Grid.Row="1">
- <RadioButton VerticalAlignment="Center" IsChecked="{Binding IsStatusActural, Mode=TwoWay}" Command="{Binding SetStatusActuralCommand}">
- <TextBlock Text="实际大小"></TextBlock>
- </RadioButton>
- </Grid>
- <Grid Grid.Row="2">
- <RadioButton Name="CustomRatioBtn" VerticalAlignment="Center" IsChecked="{Binding IsStatusCustomized,Mode=TwoWay}" Command="{Binding SetStatusCustomizedCommand}">
- <TextBlock Text="自定义显示比例"></TextBlock>
- </RadioButton>
- <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>
- </Grid>
- </Grid>
- </UserControl>
|