123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModMultipleContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- 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" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModMultipleContentViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="216"
- d:DesignWidth="466">
- <Grid VerticalAlignment="Top" Height="216" >
- <Grid.RowDefinitions>
- <RowDefinition Height="88"></RowDefinition>
- <RowDefinition Height="68"></RowDefinition>
- <RowDefinition Height="38"></RowDefinition>
- </Grid.RowDefinitions>
- <Border Background="#F7F8FA" CornerRadius="4" Height="88">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition ></RowDefinition>
- <RowDefinition ></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <TextBlock Text="Pages per sheet:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- <ComboBox Name="PageMatrixCmb" Height="32" Width="196" ItemsSource="{Binding PageMatrixList}" SelectedIndex="{Binding PageMatrixIndex}">
- <i:Interaction.Triggers>
- <i:EventTrigger>
- <i:InvokeCommandAction Command="{Binding SetPageMatrixCommand}" CommandParameter="{Binding ElementName=PageMatrixCmb}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <StackPanel Grid.Row="0" Orientation="Horizontal" IsEnabled="{Binding EnableCustomiseMatrix,UpdateSourceTrigger=PropertyChanged, Mode=OneWay}">
- <TextBox Style="{StaticResource Print_normalTxtStyle}" VerticalContentAlignment="Center" Height="32" Width="53" Margin="16,0,8,0" Text="{Binding HorizontalPageNumber, UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
- </TextBox.InputBindings>
- </TextBox>
- <TextBlock Text="X" VerticalAlignment="Center" Foreground="{StaticResource color.sys.text.neutral.lv3}"></TextBlock>
- <TextBox Style="{StaticResource Print_normalTxtStyle}" VerticalContentAlignment="Center" Height="32" Width="53" Margin="8,0,0,0" Text="{Binding VerticalPageNumber, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding SetCustomMatrixCommand}" Key="Return"></KeyBinding>
- </TextBox.InputBindings>
- </TextBox>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <TextBlock Text="Page Order:" Width="101" VerticalAlignment="Center" Margin="0,0,16,0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- <ComboBox Name="PageOrderCmb" Height="32" Width="196" ItemsSource="{Binding PageOrderList}" SelectedIndex="{Binding PageOrderIndex}">
- <i:Interaction.Triggers>
- <i:EventTrigger>
- <i:InvokeCommandAction Command="{Binding SetPageOrderCommand}" CommandParameter="{Binding ElementName=PageOrderCmb}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- </StackPanel>
- </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 Grid.Row="2" Margin="0,16,0,0">
- <StackPanel Orientation="Horizontal">
- <CheckBox Name="AutoRotationChk" VerticalAlignment="Center" Command="{Binding SetAutoRotateCommand}" IsChecked="{Binding IsAutoRotate}">
- <TextBlock Text="Auto-rotate pages in each sheet" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </CheckBox>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|