PageTurningPreview.xaml 2.1 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="PDF_Office.CustomControl.PageTurningPreview"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.CustomControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="350" d:DesignWidth="300">
  9. <Grid>
  10. <Border Margin="10,40,10,40" Background="LightGray" Height="218" Width="176">
  11. <Viewbox>
  12. <Image Name="Image"></Image>
  13. </Viewbox>
  14. </Border>
  15. <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
  16. <Button IsEnabled="False" Name="PrePage" Width="20" Click="PrePage_Click" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  17. <TextBlock Text="&lt;" VerticalAlignment="Center" ></TextBlock>
  18. </Button>
  19. <TextBox x:Name="CurrentPage" Width="30" Height="25" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,5,0" Text="1" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="CountTextBox_PreviewTextInput" KeyDown="CurrentPage_KeyDown"></TextBox>
  20. <TextBlock Text="of" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0"></TextBlock>
  21. <TextBlock x:Name="PageIndex" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5"></TextBlock>
  22. <Button Name="NextPage" Click="NextPage_Click" Width="20" Height="20" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  23. <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
  24. </Button>
  25. </StackPanel>
  26. </Grid>
  27. </UserControl>