|
@@ -3,18 +3,64 @@
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
+ xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:PDF_Office.Views"
|
|
xmlns:local="clr-namespace:PDF_Office.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
|
+ xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
|
|
|
|
+ d:DataContext="{d:DesignInstance Type=viewmodels:BottomToolContentViewModel}"
|
|
d:DesignHeight="450"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="1280"
|
|
d:DesignWidth="1280"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
+ Loaded="UserControl_Loaded"
|
|
mc:Ignorable="d">
|
|
mc:Ignorable="d">
|
|
|
|
+ <UserControl.Resources>
|
|
|
|
+ <Style x:Key="Radion_ButtonStyle" TargetType="{x:Type RadioButton}">
|
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
|
+ <Setter Property="Background" Value="White" />
|
|
|
|
+ <Setter Property="FontSize" Value="18" />
|
|
|
|
+ <Setter Property="Cursor" Value="Hand" />
|
|
|
|
+ <Setter Property="Margin" Value="0,0,10,10" />
|
|
|
|
+ <Setter Property="Height" Value="32" />
|
|
|
|
+ <Setter Property="Template">
|
|
|
|
+ <Setter.Value>
|
|
|
|
+ <ControlTemplate TargetType="{x:Type RadioButton}">
|
|
|
|
+ <Border
|
|
|
|
+ x:Name="fore"
|
|
|
|
+ Background="White"
|
|
|
|
+ BorderThickness="0"
|
|
|
|
+ CornerRadius="0">
|
|
|
|
+ <ContentPresenter
|
|
|
|
+ x:Name="content"
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Content="{TemplateBinding Content}" />
|
|
|
|
+ </Border>
|
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
|
+ <Trigger Property="IsChecked" Value="true">
|
|
|
|
+ <Setter TargetName="fore" Property="Background" Value="#575757" />
|
|
|
|
+ <Setter Property="Foreground" Value="White" />
|
|
|
|
+ </Trigger>
|
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
|
+ <Setter TargetName="fore" Property="Background" Value="#575757" />
|
|
|
|
+ <Setter Property="Foreground" Value="White" />
|
|
|
|
+ </Trigger>
|
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
|
+ </ControlTemplate>
|
|
|
|
+ </Setter.Value>
|
|
|
|
+ </Setter>
|
|
|
|
+ </Style>
|
|
|
|
+ </UserControl.Resources>
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="Loaded">
|
|
|
|
+ <prism:InvokeCommandAction Command="{Binding Load}" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
<Grid Height="32">
|
|
<Grid Height="32">
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
- <ColumnDefinition Width="*"/>
|
|
|
|
- <ColumnDefinition Width="auto" MinWidth="{Binding ElementName=StkPnlCenter,Path=ActualWidth}"/>
|
|
|
|
- <ColumnDefinition MinWidth="{Binding ElementName=StkPnlRight, Path=ActualWidth}"/>
|
|
|
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
|
+ <ColumnDefinition Width="auto" MinWidth="{Binding ElementName=StkPnlCenter, Path=ActualWidth}" />
|
|
|
|
+ <ColumnDefinition MinWidth="{Binding ElementName=StkPnlRight, Path=ActualWidth}" />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
<StackPanel
|
|
Name="StkPnlCenter"
|
|
Name="StkPnlCenter"
|
|
@@ -24,21 +70,86 @@
|
|
<Button
|
|
<Button
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding FirstPageCommand}">
|
|
|
|
+ <Path
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
+ Data="M5.01864718,2 L5.01864718,14 L4,14 L4,2 L5.01864718,2 Z M11.2797077,2.64644661 L12,3.35355339 L7.2668015,8 L12,12.6464466 L11.2797077,13.3535534 L5.82632562,8 L11.2797077,2.64644661 Z"
|
|
|
|
+ Fill="Black">
|
|
|
|
+ <Path.RenderTransform>
|
|
|
|
+ <TransformGroup>
|
|
|
|
+ <TranslateTransform X="-2" />
|
|
|
|
+ </TransformGroup>
|
|
|
|
+ </Path.RenderTransform>
|
|
|
|
+ </Path>
|
|
|
|
+ </Button>
|
|
<Button
|
|
<Button
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
- <TextBox Width="48" />
|
|
|
|
- <TextBlock VerticalAlignment="Center" Text="/200" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding PrePageCommand}">
|
|
|
|
+ <Polygon Fill="Black" Points="14.25 5.45223214 13.5232733 4.75 8.25 9.84553571 2.97672673 4.75 2.25 5.45223214 8.25 11.25">
|
|
|
|
+ <Polygon.RenderTransform>
|
|
|
|
+ <TransformGroup>
|
|
|
|
+ <TranslateTransform X="8.250000" Y="8.000000" />
|
|
|
|
+ <ScaleTransform ScaleX="-1" ScaleY="1" />
|
|
|
|
+ <RotateTransform Angle="90" />
|
|
|
|
+ <TranslateTransform X="22.250000" Y="23.000000" />
|
|
|
|
+ </TransformGroup>
|
|
|
|
+ </Polygon.RenderTransform>
|
|
|
|
+ </Polygon>
|
|
|
|
+ </Button>
|
|
|
|
+ <TextBox
|
|
|
|
+ Width="48"
|
|
|
|
+ Height="24"
|
|
|
|
+ Padding="10,0,0,0"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
|
+ FontSize="12"
|
|
|
|
+ InputMethod.IsInputMethodEnabled="False"
|
|
|
|
+ Text="{Binding CurrentPage}">
|
|
|
|
+ <i:Interaction.Triggers>
|
|
|
|
+ <i:EventTrigger EventName="KeyDown">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageTextKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ <i:EventTrigger EventName="PreviewKeyDown">
|
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageTextPreviewKeyDownCommand}" PassEventArgsToCommand="True" />
|
|
|
|
+ </i:EventTrigger>
|
|
|
|
+ </i:Interaction.Triggers>
|
|
|
|
+ </TextBox>
|
|
|
|
+ <TextBlock
|
|
|
|
+ MinWidth="50"
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
+ Text="{Binding PageCount, StringFormat=/{0}}" />
|
|
<Button
|
|
<Button
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding NextPageCommand}">
|
|
|
|
+ <Polygon Fill="Black" Points="14.25 5.45223214 13.5232733 4.75 8.25 9.84553571 2.97672673 4.75 2.25 5.45223214 8.25 11.25">
|
|
|
|
+ <Polygon.RenderTransform>
|
|
|
|
+ <TransformGroup>
|
|
|
|
+ <TranslateTransform X="8.000000" Y="8.000000" />
|
|
|
|
+ <ScaleTransform ScaleX="-1" ScaleY="1" />
|
|
|
|
+ <RotateTransform Angle="-90" />
|
|
|
|
+ <TranslateTransform X="-8.000000" Y="-10.000000" />
|
|
|
|
+ </TransformGroup>
|
|
|
|
+ </Polygon.RenderTransform>
|
|
|
|
+ </Polygon>
|
|
|
|
+ </Button>
|
|
<Button
|
|
<Button
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding LastPageCommand}">
|
|
|
|
+ <Path Data="M12.0252351,2 L12.0252351,14 L11.0252351,14 L11.0252351,2 L12.0252351,2 Z M4.6892629,2.64644661 L9.90771909,8 L4.6892629,13.3535534 L4,12.6464466 L8.52929737,8 L4,3.35355339 L4.6892629,2.64644661 Z" Fill="Black">
|
|
|
|
+ <Path.RenderTransform>
|
|
|
|
+ <TransformGroup>
|
|
|
|
+ <TranslateTransform X="-3" />
|
|
|
|
+ </TransformGroup>
|
|
|
|
+ </Path.RenderTransform>
|
|
|
|
+ </Path>
|
|
|
|
+ </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel
|
|
<StackPanel
|
|
x:Name="StkPnlRight"
|
|
x:Name="StkPnlRight"
|
|
@@ -48,23 +159,46 @@
|
|
<ToggleButton
|
|
<ToggleButton
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding SetViewModeCommand}"
|
|
|
|
+ IsChecked="{Binding IsContinue}">
|
|
|
|
+ <Grid>
|
|
|
|
+ <Polygon Fill="Black" Points="2 0 2 6 14 6 14 0 15 0 15 7 1 7 1 0" />
|
|
|
|
+ <Path Data="M10.807106,9 L15,13.3928931 L15,16 L14,16 L14,14 L9.999999,14 L9.999,10 L2,10 L2,16 L1,16 L1,9 L10.807106,9 Z M13.237,13 L10.999,10.64 L10.999,13 L13.237,13 Z" Fill="Black" />
|
|
|
|
+ </Grid>
|
|
|
|
+ </ToggleButton>
|
|
<Separator
|
|
<Separator
|
|
Width="1"
|
|
Width="1"
|
|
Height="10"
|
|
Height="10"
|
|
Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
|
|
Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
|
|
- <Button
|
|
|
|
|
|
+ <RadioButton
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
- <Button
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding SetViewModeCommand}"
|
|
|
|
+ IsChecked="{Binding IsSingleView}"
|
|
|
|
+ Style="{StaticResource Radion_ButtonStyle}">
|
|
|
|
+ <Path Data="M9.80710597,0 L14,4.39289312 L14,16 L2,16 L2,0 L9.80710597,0 Z M8.999,1 L3,1 L3,15 L13,15 L13,4.999 L8.999999,5 L8.999,1 Z M12.236,3.999 L9.999,1.64 L9.999,4 L12.236,3.999 Z" Fill="Black" />
|
|
|
|
+ </RadioButton>
|
|
|
|
+
|
|
|
|
+ <RadioButton
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
- <Button
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding SetViewModeCommand}"
|
|
|
|
+ IsChecked="{Binding IsDoubleView}"
|
|
|
|
+ Style="{StaticResource Radion_ButtonStyle}">
|
|
|
|
+ <Path Data="M0,15 L0,1 L11.807106,1 L16,5.39289312 L16,15 L0,15 Z M7.5,2 L1,2 L1,14 L7.5,14 L7.5,2 Z M10.999,2 L8.5,2 L8.5,14 L15,14 L15,5.999 L10.999999,6 L10.999,2 Z M11.999,2.64 L11.999,5 L14.236,4.999 L11.999,2.64 Z" Fill="Black" />
|
|
|
|
+ </RadioButton>
|
|
|
|
+ <RadioButton
|
|
Width="24"
|
|
Width="24"
|
|
Height="24"
|
|
Height="24"
|
|
- Margin="4" />
|
|
|
|
|
|
+ Margin="4"
|
|
|
|
+ Command="{Binding SetViewModeCommand}"
|
|
|
|
+ IsChecked="{Binding IsBookMode}"
|
|
|
|
+ Style="{StaticResource Radion_ButtonStyle}">
|
|
|
|
+ <Path Data="M7,11 L7,16 L6,16 L6,12 L1,12 L1,16 L0,16 L0,11 L7,11 Z M16,11 L16,16 L15,16 L15,12 L10,12 L10,16 L9,16 L9,11 L16,11 Z M3.80710597,0 L7,3.39289312 L7,9 L0,9 L0,0 L3.80710597,0 Z M2.999,1 L1,1 L1,8 L6,8 L6,3.999 L2.999999,4 L2.999,1 Z M3.999,1.652 L3.999,3 L5.251,2.999 L3.999,1.652 Z" Fill="Black" />
|
|
|
|
+ </RadioButton>
|
|
<Separator
|
|
<Separator
|
|
Width="1"
|
|
Width="1"
|
|
Height="10"
|
|
Height="10"
|