12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePagePrinter.HomePagePrinterDocumentContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- prism:ViewModelLocator.AutoWireViewModel="True" >
- <Grid Height="356" Width="212">
- <Border Height="356" Width="212" Background="#F7F8FA" HorizontalAlignment="Center" VerticalAlignment="Top">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="52"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="56"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="16">
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal">
- <TextBlock Text="size:" FontFamily="Segoe UI" FontSize="12"></TextBlock>
- <TextBlock Text="{Binding PaperWidth}" FontFamily="Segoe UI" FontSize="12"></TextBlock>
- <TextBlock Text="*" FontFamily="Segoe UI" FontSize="12"></TextBlock>
- <TextBlock Text="{Binding PaperHeight}" FontFamily="Segoe UI" FontSize="12"></TextBlock>
- <TextBlock Text="mm" FontFamily="Segoe UI" FontSize="12"></TextBlock>
- </StackPanel>
- </Grid>
- <Border Grid.Row="1" Width="{Binding ViewBoxWidth}" Height="{Binding ViewBoxHeight}" BorderThickness="1" BorderBrush="#19000000" CornerRadius="2">
- <Grid Background="White">
- <Viewbox>
- <Image Name="Image" Source="{Binding BitmapSource}"></Image>
- </Viewbox>
- </Grid>
- </Border>
- <Grid Grid.Row="2">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Name="PrePageBtn" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Command="{Binding TurnPageCommand}" CommandParameter="{Binding ElementName=PrePageBtn}">
- <TextBlock Text="<" VerticalAlignment="Center"></TextBlock>
- </Button>
- <TextBox x:Name="CurrentPageIndexTxt" Width="30" Height="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,5,0" Text="{Binding TargetPaperIndex, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" >
- <i:Interaction.Triggers>
- <i:EventTrigger x:Name="PropertyChanged">
- <i:InvokeCommandAction Command="{Binding JumpPageCommand}" CommandParameter="{Binding ElementName=CurrentPageIndexTxt}"></i:InvokeCommandAction>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBox>
- <TextBlock Text="of" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0" FontFamily="Segoe UI" FontSize="14"></TextBlock>
- <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5" Text="{Binding PrintedPageCount}"></TextBlock>
- <Button Name="NextPageBtn" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Command="{Binding TurnPageCommand}" CommandParameter="{Binding ElementName=NextPageBtn}">
- <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
- </Button>
- </StackPanel>
- </Grid>
- </Grid>
- </Border>
- </Grid>
- </UserControl>
|