123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterModPosterContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:cus="clr-namespace:PDF_Master.CustomControl" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:homepageprinter="clr-namespace:PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter" d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterModPosterContentViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="180"
- d:DesignWidth="466"
- prism:ViewModelLocator.AutoWireViewModel="True">
- <UserControl.Resources>
- <Style x:Key="LabelTxtStyle" TargetType="TextBox">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate>
- <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
- <Border BorderBrush="{StaticResource color.field.border.dis}" Background="{StaticResource color.field.bg.dis}" CornerRadius="4">
- <Grid>
- <TextBlock Text="{Binding DefaultLabel, Mode=OneWay}" Grid.Column="1" VerticalAlignment="Center" Foreground="#BBB"
- Name="markText" Visibility="Visible" FontSize="14" Margin="8,0,0,0" FontFamily="Segoe UI"/>
- </Grid>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Border Background="#F7F8FA" CornerRadius="4" Height="188">
- <Grid VerticalAlignment="Top">
- <Grid.RowDefinitions>
- <RowDefinition Height="30*"></RowDefinition>
- <RowDefinition Height="40*"></RowDefinition>
- <RowDefinition Height="40*"></RowDefinition>
- <RowDefinition Height="30*"></RowDefinition>
- <RowDefinition Height="40*"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" HorizontalAlignment="Left" Margin="0,8,0,0">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <RadioButton Name="StatusTileRdo" Margin="8,0,25,0" FontSize="14" IsChecked="True" GroupName="ModPoster" Command="{Binding SetModPosterStatusCommand}" CommandParameter="{Binding ElementName=StatusTileRdo}">
- <TextBlock Text="Tile" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </RadioButton>
- <RadioButton Name="StatusSplitRdo" FontSize="14" GroupName="ModPoster" Command="{Binding SetModPosterStatusCommand}" CommandParameter="{Binding ElementName=StatusSplitRdo}">
- <TextBlock Text="Split" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- </RadioButton>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <StackPanel Orientation="Horizontal" Visibility="{Binding PageRangeSettingVisibility, Mode=TwoWay}" Margin="8,8,0,0">
- <TextBlock Text="Page range:" VerticalAlignment="Center" FontSize="14" Width="80"></TextBlock>
- <cus:NumericUpDown x:Name="CustomRatioUpDown" Loaded="CustomRatioUpDown_Loaded" Width="90" Height="32" Margin="16,0,16,0" Text="{Binding TileRatio, Mode=TwoWay}" IsEnabled="{Binding ElementName=CustomRatioBtn, Path=IsChecked}" Minimum="1" Maximum="400"></cus:NumericUpDown>
- <TextBlock Text="%" VerticalAlignment="Center" FontSize="14" FontFamily="Segoe UI" Foreground="{StaticResource color.sys.text.neutral.lv3}"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Visibility="{Binding PagesPerSheetVisibility , Mode=TwoWay}" Margin="8,8,0,0">
- <TextBlock Text="Pages per sheet:" VerticalAlignment="Center" FontFamily="Segoe UI" FontSize="14" ></TextBlock>
- <ComboBox Name="PageSheetCmb" Height="32" Width="196" Margin="16,0,16,0" ItemsSource="{Binding PageSheetList}" SelectedIndex="{Binding PageSheetIndex}">
- <i:Interaction.Triggers>
- <i:EventTrigger>
- <i:InvokeCommandAction Command="{Binding SetSheetCommand}" CommandParameter="{Binding ElementName=PageSheetCbx}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <StackPanel Orientation="Horizontal" IsEnabled="{Binding EnableCustomSheet, Mode=TwoWay}">
- <TextBox Style="{StaticResource Print_normalTxtStyle}" Height="32" Width="48" VerticalContentAlignment="Center" Text="{Binding HorizontalSheetNumber,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding SetCustomSheetCommand}" Key="Return"></KeyBinding>
- </TextBox.InputBindings>
- </TextBox>
- <TextBlock Text="x" VerticalAlignment="Center" Margin="8,0,8,0"></TextBlock>
- <TextBox Style="{StaticResource Print_normalTxtStyle}" Height="32" Width="48" VerticalContentAlignment="Center" Text="{Binding VerticalSheetNumber,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding SetCustomSheetCommand}" Key="Return"></KeyBinding>
- </TextBox.InputBindings>
- </TextBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Margin="8,8,0,0">
- <StackPanel Orientation="Horizontal" >
- <TextBlock Text="Overlap:" VerticalAlignment="Center" FontSize="14" Width="80"></TextBlock>
- <TextBox Style="{StaticResource Print_normalTxtStyle}" VerticalContentAlignment="Center" Height="32" Width="88" Margin="16,0,16,0" Text="{Binding OverlapNumber,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding SetOverlapCommand}" Key="Return"></KeyBinding>
- </TextBox.InputBindings>
- </TextBox>
- <TextBlock Text="mm" VerticalAlignment="Center" FontSize="14" FontFamily="Segoe UI" Foreground="{StaticResource color.sys.text.neutral.lv3}"></TextBlock>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Margin="8,8,0,0">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
- <CheckBox Name="SetCutMarksChk" Margin="0,0,11,0" Command="{Binding SetCutMarksCommand}" CommandParameter="{Binding ElementName=SetCutMarksChk}"></CheckBox>
- <TextBlock Text="Cut marks" FontSize="14"></TextBlock>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="4" VerticalAlignment="Center" Margin="8,8,0,0">
- <StackPanel Orientation="Horizontal">
- <CheckBox Name="SetLabelChk" Margin="0,0,11,0" VerticalAlignment="Center" Command="{Binding SetLabelCommand}" CommandParameter="{Binding ElementName=SetLabelChk}"></CheckBox>
- <TextBlock Text="Label" VerticalAlignment="Center" Margin="0,0,16,0" FontSize="14"></TextBlock>
- <TextBox Style="{StaticResource LabelTxtStyle}" Height="32" Width="361" Text="{Binding LabelString, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" IsEnabled="{Binding ElementName=SetLabelChk, Path=IsChecked}" IsReadOnly="True"></TextBox>
- </StackPanel>
- </Grid>
- </Grid>
- </Border>
- </UserControl>
|