|
@@ -1,159 +1,4 @@
|
|
|
-<<<<<<< Updated upstream
|
|
|
-<UserControl x:Class="PDF_Office.Views.Tools.ToolsBarContent"
|
|
|
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
- xmlns:prism="http://prismlibrary.com/" xmlns:tools="clr-namespace:PDF_Office.ViewModels.Tools" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
- prism:ViewModelLocator.AutoWireViewModel="True">
|
|
|
- <UserControl.Resources>
|
|
|
- <ResourceDictionary>
|
|
|
- <ResourceDictionary.MergedDictionaries>
|
|
|
- <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml"/>
|
|
|
- <ResourceDictionary Source="../../Styles/MenuStyle.xaml"/>
|
|
|
- </ResourceDictionary.MergedDictionaries>
|
|
|
- </ResourceDictionary>
|
|
|
- </UserControl.Resources>
|
|
|
- <Grid>
|
|
|
- <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
|
|
|
- <WrapPanel HorizontalAlignment="Center" Height="40">
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }" Command="{Binding CompressCommand}">
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="压缩" VerticalAlignment="Center"></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }" >
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="合并" VerticalAlignment="Center"></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }">
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="文件对比" VerticalAlignment="Center"></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Menu Background="White">
|
|
|
- <MenuItem x:Name="btnPassword" Height="40" Padding="0" Width="auto" BorderThickness="0" >
|
|
|
- <MenuItem.Header>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0" VerticalAlignment="Center">
|
|
|
- <StackPanel Margin="0,0,8,0" VerticalAlignment="Center">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock x:Name="txtPassword" Padding="0,12,0,0" Text="安全" Height="40" FontSize="12"/>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </MenuItem.Header>
|
|
|
- <MenuItem Name="MenuEncrypt" Style="{StaticResource ToolsMenuStyle }" Command="{Binding SetPasswordCommand}">
|
|
|
- <MenuItem.Header>
|
|
|
- <TextBlock Text="设置密码" ></TextBlock>
|
|
|
- </MenuItem.Header>
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Name="MenuDecrypt" Style="{StaticResource ToolsMenuStyle }" Command="{Binding CancelPasswordCommand}">
|
|
|
- <MenuItem.Header>
|
|
|
- <TextBlock Text="解除安全性设置"></TextBlock>
|
|
|
- </MenuItem.Header>
|
|
|
- </MenuItem>
|
|
|
- </MenuItem>
|
|
|
- </Menu>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }" >
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="密文" VerticalAlignment="Center"></TextBlock>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Name="WatermarkContent" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding SetEditToolsCommand }" CommandParameter="{Binding ElementName=WatermarkContent}">
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="水印" VerticalAlignment="Center"></TextBlock>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Name="BackgroundContent" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding SetEditToolsCommand }" CommandParameter="{Binding ElementName=BackgroundContent}">
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="背景" VerticalAlignment="Center"></TextBlock>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }" >
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="页眉页脚" VerticalAlignment="Center"></TextBlock>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }" >
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="贝茨码" VerticalAlignment="Center"></TextBlock>
|
|
|
- <Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Right" Data="M0 0L4 4L8 0H0Z">
|
|
|
- <Path.RenderTransform>
|
|
|
- <TranslateTransform X="8"/>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- <Button Style="{StaticResource InsideBarBtnStyle }">
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
|
|
|
- <StackPanel Margin="0,0,8,0">
|
|
|
- <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
|
|
|
- </StackPanel >
|
|
|
- <TextBlock Text="裁剪" VerticalAlignment="Center"></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </WrapPanel>
|
|
|
- </Border>
|
|
|
- </Grid>
|
|
|
-</UserControl>
|
|
|
-=======
|
|
|
-<UserControl x:Class="PDF_Office.Views.Tools.ToolsBarContent"
|
|
|
+<UserControl x:Class="PDF_Office.Views.Tools.ToolsBarContent"
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:prism="http://prismlibrary.com/" xmlns:tools="clr-namespace:PDF_Office.ViewModels.Tools" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
@@ -305,5 +150,4 @@
|
|
|
</WrapPanel>
|
|
|
</Border>
|
|
|
</Grid>
|
|
|
-</UserControl>
|
|
|
->>>>>>> Stashed changes
|
|
|
+</UserControl>
|