|
@@ -5,25 +5,45 @@
|
|
|
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" LostFocus="CurrentPage_LostFocus"></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>
|
|
|
+ Height="320" Width="212">
|
|
|
+ <Grid Width="212" Height="320">
|
|
|
+ <StackPanel Orientation="Vertical" Height="320">
|
|
|
+ <Border Margin="0,16,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Background="LightGray" Height="248" Width="180">
|
|
|
+ <Viewbox>
|
|
|
+ <Image Name="Image" Height="248" Width="180"></Image>
|
|
|
+ </Viewbox>
|
|
|
+ </Border>
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,16,0,0" Width="155">
|
|
|
+ <Button Name="PrePage" Width="24" Click="PrePage_Click" Height="24" HorizontalAlignment="Left" FontSize="16" BorderBrush="{StaticResource color.field.border.norm}" Background="{StaticResource color.field.bg.def}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" >
|
|
|
+ <Path Data="M8.11144 11.2499L10.4311 8.93029L9.37043 7.86963L5.77045 11.4696C5.47756 11.7625 5.47756 12.2374 5.77045 12.5303L9.37043 16.1302L10.4311 15.0696L8.11144 12.7499H19.5008V11.2499H8.11144Z" Fill="#616469" Width="13.95" Height="8.28" Stretch="Fill" />
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border BorderThickness="1" CornerRadius="4" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
|
|
|
+ <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <TextBox x:Name="CurrentPage" Width="54" Height="24" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" Margin="8,0,8,0" Text="1" InputMethod.IsInputMethodEnabled="False" PreviewTextInput="CountTextBox_PreviewTextInput" Padding="8,0,8,0" KeyDown="CurrentPage_KeyDown" Background="{StaticResource color.field.bg.def}" BorderBrush="{StaticResource color.field.border.norm}" LostFocus="CurrentPage_LostFocus">
|
|
|
+ <TextBox.Resources>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="CornerRadius" Value="4"/>
|
|
|
+ </Style>
|
|
|
+ </TextBox.Resources>
|
|
|
+ </TextBox>
|
|
|
+ <TextBlock Text="/" Margin="0,0,2,0" Width="5" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBlock>
|
|
|
+ <TextBlock x:Name="PageIndex" VerticalAlignment="Center" Block.TextAlignment="Center" Width="30" />
|
|
|
+ <Button x:Name="NextPage" Click="NextPage_Click" Width="24" Height="24" FontSize="16" Background="{StaticResource color.field.bg.def}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="{StaticResource color.field.border.norm}">
|
|
|
+ <Path Data="M11.8893 4.24992L0.5 4.24992V5.74992L11.8893 5.74992L9.56967 8.06958L10.6303 9.13024L14.2303 5.53026C14.5232 5.23737 14.5232 4.7625 14.2303 4.4696L10.6303 0.869629L9.56967 1.93029L11.8893 4.24992Z" Fill="#616469" Width="13.95" Height="8.28" Stretch="Fill"/>
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Border BorderThickness="1" CornerRadius="4" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
|
|
|
+ <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</UserControl>
|