123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModSizeContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:homepageprinter="clr-namespace:PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModSizeContentViewModel}"
- d:DesignHeight="184"
- d:DesignWidth="466"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border
- Grid.Row="0"
- Background="#F7F8FA"
- CornerRadius="4">
- <Grid Height="120" VerticalAlignment="Top">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="8,8,0,0">
- <RadioButton
- Name="StatusAdaptiveRdo"
- VerticalContentAlignment="Center"
- Command="{Binding SetModSizeStatusCommand}"
- CommandParameter="{Binding ElementName=StatusAdaptiveRdo}"
- GroupName="ModSize"
- IsChecked="True">
- <TextBlock
- FontFamily="Segoe UI"
- FontSize="14"
- Text="Auto adapt" />
- </RadioButton>
- </Grid>
- <Grid Grid.Row="1" Margin="8,0">
- <RadioButton
- Name="StatusActuralRdo"
- VerticalContentAlignment="Center"
- Command="{Binding SetModSizeStatusCommand}"
- CommandParameter="{Binding ElementName=StatusActuralRdo}"
- GroupName="ModSize">
- <TextBlock
- FontFamily="Segoe UI"
- FontSize="14"
- Text="Actual size" />
- </RadioButton>
- </Grid>
- <WrapPanel
- Grid.Row="2"
- Height="40"
- Margin="8,0,0,0"
- VerticalAlignment="Center">
- <RadioButton
- Name="StatusCustomizedRdo"
- VerticalContentAlignment="Center"
- Command="{Binding SetModSizeStatusCommand}"
- CommandParameter="{Binding ElementName=StatusCustomizedRdo}"
- GroupName="ModSize">
- <TextBlock
- FontFamily="Segoe UI"
- FontSize="14"
- Text="Custom scale:" />
- </RadioButton>
- <cus:NumericUpDown
- x:Name="CustomRatioUpDown"
- Width="90"
- Height="28"
- Margin="15,0,0,0"
- IsEnabled="{Binding ElementName=StatusCustomizedRdo, Path=IsChecked}"
- Loaded="CustomRatioUpDown_Loaded"
- Maximum="200"
- Minimum="20"
- Text="{Binding DisplayRatio, Mode=TwoWay}" />
- </WrapPanel>
- </Grid>
- </Border>
- <Grid Grid.Row="1" Margin="0,8,0,0">
- <Border
- Grid.Row="0"
- Background="#F7F8FA"
- CornerRadius="4">
- <StackPanel Orientation="Vertical">
- <CheckBox
- Name="DuplexChk"
- Margin="9,12"
- Command="{Binding UnlockDuplexCommand}"
- CommandParameter="{Binding ElementName=DuplexChk}">
- <TextBlock Text="Duplex Printing" />
- </CheckBox>
- <StackPanel
- Margin="0,0,0,15"
- IsEnabled="{Binding ElementName=DuplexChk, Path=IsChecked}"
- Orientation="Horizontal">
- <RadioButton
- Name="DuplexModLongEdgeRdo"
- Margin="12,0,17,0"
- Command="{Binding ChangeDuplexModCommand}"
- CommandParameter="{Binding ElementName=DuplexModLongEdgeRdo}"
- IsChecked="{Binding IsDuplexModLongEdge}">
- <TextBlock Text="Flip On Long Edge" />
- </RadioButton>
- <RadioButton
- Name="DuplexModShortEdgeRdo"
- Command="{Binding ChangeDuplexModCommand}"
- CommandParameter="{Binding ElementName=DuplexModShortEdgeRdo}"
- IsChecked="{Binding IsDuplexModShortEdge}">
- <TextBlock Text="Flip On Short Edge" />
- </RadioButton>
- </StackPanel>
- </StackPanel>
- </Border>
- </Grid>
- </Grid>
- </UserControl>
|