123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModSizeContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:cus="clr-namespace:PDF_Master.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_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter"
- d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModSizeContentViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="184"
- d:DesignWidth="466">
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="108"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Border Background="#F7F8FA" CornerRadius="4" Grid.Row="0">
- <Grid VerticalAlignment="Top" Height="108">
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="0,8,0,8">
- <RadioButton Name="StatusAdaptiveRdo" VerticalAlignment="Center" GroupName="ModSize" IsChecked="True" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusAdaptiveRdo}">
- <TextBlock Text="Auto adapt" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </RadioButton>
- </Grid>
- <Grid Grid.Row="1">
- <RadioButton Name="StatusActuralRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusActuralRdo}">
- <TextBlock Text="Actual size" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </RadioButton>
- </Grid>
- <Grid Grid.Row="2" Margin="0,0,0,8" Height="40" VerticalAlignment="Center">
- <RadioButton Name="StatusCustomizedRdo" VerticalAlignment="Center" GroupName="ModSize" Command="{Binding SetModSizeStatusCommand}" CommandParameter="{Binding ElementName=StatusCustomizedRdo}">
- <TextBlock Text="Custom scale:" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </RadioButton>
- <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>
- </Grid>
- </Grid>
- </Border>
- <Grid Grid.Row="1" Margin="0,8,0,0">
- <Border Background="#F7F8FA" CornerRadius="4" Grid.Row="0">
- <StackPanel Orientation="Vertical">
- <CheckBox Margin="9,12" Name="DuplexChk" Command="{Binding UnlockDuplexCommand}" CommandParameter="{Binding ElementName=DuplexChk}">
- <TextBlock Text="Duplex Printing"></TextBlock>
- </CheckBox>
- <StackPanel Orientation="Horizontal" IsEnabled="{Binding ElementName=DuplexChk, Path=IsChecked}">
- <RadioButton Name="DuplexModLongEdgeRdo" Margin="12,0,17,0" IsChecked="{Binding IsDuplexModLongEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModLongEdgeRdo}">
- <TextBlock Text="Flip On Long Edge"></TextBlock>
- </RadioButton>
- <RadioButton Name="DuplexModShortEdgeRdo" IsChecked="{Binding IsDuplexModShortEdge}" Command="{Binding ChangeDuplexModCommand}" CommandParameter="{Binding ElementName=DuplexModShortEdgeRdo}">
- <TextBlock Text="Flip On Short Edge"></TextBlock>
- </RadioButton>
- </StackPanel>
- </StackPanel>
- </Border>
- </Grid>
- </Grid>
- </UserControl>
|