123456789101112131415161718192021222324252627282930313233343536 |
- <UserControl x:Class="ComPDFKit.Controls.PDFControl.PrintPreviewControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:ComPDFKit.Controls.PDFControl"
- mc:Ignorable="d"
- d:DesignHeight="360" d:DesignWidth="240" Background="#F7F8FA">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="40"></RowDefinition>
- </Grid.RowDefinitions>
- <StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
- <TextBlock Text="{Binding PaperKind}" Margin="0,0,10,0"></TextBlock>
- <TextBlock Text="size"></TextBlock>
- <TextBlock Text="{Binding PaperWidth}"></TextBlock>
- <TextBlock Text="*"></TextBlock>
- <TextBlock Text="{Binding PaperHeight}"></TextBlock>
- </StackPanel>
- <Grid Grid.Row="1" Margin="5">
- <Viewbox Height="{Binding ViewBoxHeight}" Width="{Binding ViewBoxWidth}">
- <Image Name="imgPrint" RenderOptions.BitmapScalingMode="HighQuality" Source="{Binding PreviewBitmapSource}">
- </Image>
- </Viewbox>
- </Grid>
- <StackPanel Grid.Row="2" HorizontalAlignment="Center" Orientation="Horizontal">
- <Button x:Name="btnPreButton" Height="32" Width="36" Margin="0,0,12,0" Click="btnPreButton_Click"></Button>
- <TextBox x:Name="txbPageIndex" Height="32" Width="50" Text="{Binding PaperIndex, UpdateSourceTrigger=PropertyChanged}" LostFocus="txbPageIndex_LostFocus" PreviewLostKeyboardFocus="txbPageIndex_PreviewLostKeyboardFocus"></TextBox>
- <TextBlock Text=" of " VerticalAlignment="Center"></TextBlock>
- <TextBlock Text="{Binding PrintedPageCount}" VerticalAlignment="Center"></TextBlock>
- <Button x:Name="btnNextButton" Height="32" Width="36" Margin="12,0,0,0" Click="btnNextButton_Click"></Button>
- </StackPanel>
- </Grid>
- </UserControl>
|