1234567891011121314151617181920212223242526272829 |
- <UserControl x:Class="PDF_Office.CustomControl.PageTurningPreview"
- 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:PDF_Office.CustomControl"
- mc:Ignorable="d"
- Height="280" Width="200">
- <Grid Width="200" Height="280">
- <StackPanel Orientation="Vertical" Height="280">
- <Border Margin="0,16,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Background="LightGray" Height="218" Width="176">
- <Viewbox>
- <Image Name="Image" Height="218" Width="176"></Image>
- </Viewbox>
- </Border>
- <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,16,0,0">
- <Button Name="PrePage" Width="24" Click="PrePage_Click" Height="24" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
- <TextBlock Text="<" VerticalAlignment="Center" ></TextBlock>
- </Button>
- <TextBox x:Name="CurrentPage" Width="48" Height="24" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="11,0,2,0" Text="1" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="CountTextBox_PreviewTextInput" KeyDown="CurrentPage_KeyDown"></TextBox>
- <TextBlock Text="of" Margin="0,0,2,0" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
- <TextBlock x:Name="PageIndex" VerticalAlignment="Center" Block.TextAlignment="Center" Width="23"/>
- <Button Name="NextPage" Click="NextPage_Click" Width="24" Height="24" HorizontalAlignment="Left" FontSize="16" Background="WhiteSmoke" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="17,0,0,0">
- <TextBlock Text=">" VerticalAlignment="Center"></TextBlock>
- </Button>
- </StackPanel>
- </StackPanel>
- </Grid>
- </UserControl>
|