1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterPageSetDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:prism="http://prismlibrary.com/" xmlns:homepageprinter="clr-namespace:PDF_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter" d:DataContext="{d:DesignInstance Type=homepageprinter:HomePagePrinterPageSetDialogViewModel}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- d:DesignHeight="380"
- d:DesignWidth="371"
- mc:Ignorable="d">
- <Grid Height="380" Width="371" Margin="16,0,16,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="48"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="64"></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Text="页面设置" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
- <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="235">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"></RowDefinition>
- <RowDefinition Height="1*"></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0">
- <TextBlock Text="纸张" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="大小: " VerticalAlignment="Center" Width="42"></TextBlock>
- <ComboBox Width="281" Height="32" Margin="16,0,0,0" ItemsSource="{Binding PaperSizeNameList}" SelectedIndex="{Binding PaperSizeIndex}" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,9,0,0" Visibility="{Binding IsPageSizeStackPanelsVisible, Mode=OneWay}">
- <TextBox Margin="58,0,0,0" Height="32" Width="52" VerticalContentAlignment="Center" TextChanged="TextBox_TextChanged" Text="{Binding PaperSizeWidth, Mode=TwoWay}"></TextBox>
- <TextBlock Text="X" Width=" 9" Margin="11,0,11,0" VerticalAlignment="Center"></TextBlock>
- <TextBox Margin="0,0,0,0" Height="32" Width="52" VerticalContentAlignment="Center" Text="{Binding PaperSizeHeight, Mode=TwoWay}"></TextBox>
- <TextBlock Text="mm" Margin="11,0,11,0" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="1" Margin="0,0,0,0">
- <TextBlock Text="页边距" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="上: " VerticalAlignment="Center"></TextBlock>
- <cus:NumericUpDown Margin="30,0,0,0" Text="{Binding TopMargin, Mode=TwoWay}" Height="32" Width=" 66"></cus:NumericUpDown>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="71,0,0,0">
- <TextBlock Text="下: " VerticalAlignment="Center" ></TextBlock>
- <cus:NumericUpDown Margin="30,0,0,0" Text="{Binding BottomMargin, Mode=TwoWay}" Height="32" Width=" 66"></cus:NumericUpDown>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,14,0,0">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="左: " VerticalAlignment="Center"></TextBlock>
- <cus:NumericUpDown Margin="30,0,0,0" Text="{Binding LeftMargin, Mode=TwoWay}" Height="32" Width=" 66"></cus:NumericUpDown>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="71,0,0,0">
- <TextBlock Text="右: " VerticalAlignment="Center"></TextBlock>
- <cus:NumericUpDown Margin="30,0,0,0" Text="{Binding RightMargin, Mode=TwoWay}" Height="32" Width=" 66"></cus:NumericUpDown>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Border>
- <Grid Grid.Row="2">
- <StackPanel Orientation="Horizontal" Margin="0,16,32,16" HorizontalAlignment="Right">
- <Button Content="取消" Height="32" Width="98" Margin="0,0,10,0" Command="{Binding CancelSetPageSizeCommand}"></Button>
- <Button Content="确认" Height="32" Width="98" Command="{Binding ConfirmSetPageSizeCommand}"></Button>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|