123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <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:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:tools="clr-namespace:PDF_Office.ViewModels.Tools"
- 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"
- Height="40"
- BorderBrush="#1A000000"
- BorderThickness="0,1,0,1">
- <WrapPanel Height="40" HorizontalAlignment="Center">
- <Button Command="{Binding CompressCommand}" Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="压缩" />
- </StackPanel>
- </Button>
- <Button Command="{Binding MergeCommand}" Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="合并" />
- </StackPanel>
- </Button>
- <Button Style="{StaticResource InsideBarBtnStyle}" Visibility="Collapsed">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="文件对比" />
- </StackPanel>
- </Button>
- <Menu Background="Transparent">
- <MenuItem
- x:Name="btnPassword"
- Width="auto"
- Height="40"
- Padding="0"
- BorderThickness="0">
- <MenuItem.Header>
- <StackPanel
- Margin="12,0,12,0"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0" VerticalAlignment="Center">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock
- x:Name="txtPassword"
- Height="40"
- Padding="0,12,0,0"
- FontSize="12"
- Text="安全" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </MenuItem.Header>
- <MenuItem
- Name="MenuEncrypt"
- Command="{Binding SetPasswordCommand}"
- Style="{StaticResource ToolsMenuStyle}">
- <MenuItem.Header>
- <TextBlock Text="设置密码" />
- </MenuItem.Header>
- </MenuItem>
- <MenuItem
- Name="MenuDecrypt"
- Command="{Binding CancelPasswordCommand}"
- Style="{StaticResource ToolsMenuStyle}">
- <MenuItem.Header>
- <TextBlock Text="解除安全性设置" />
- </MenuItem.Header>
- </MenuItem>
- </MenuItem>
- </Menu>
- <Button
- Name="RedactionContent"
- Command="{Binding SetEditToolsCommand}"
- CommandParameter="{Binding ElementName=RedactionContent}"
- Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="密文" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </Button>
- <Button
- x:Name="WatermarkContent"
- Command="{Binding SetEditToolsCommand}"
- CommandParameter="{Binding ElementName=WatermarkContent}"
- Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="水印" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </Button>
- <Button
- Name="BackgroundContent"
- Command="{Binding SetEditToolsCommand}"
- CommandParameter="{Binding ElementName=BackgroundContent}"
- Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="背景" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </Button>
- <Button
- Name="HeaderFooterContent"
- Command="{Binding SetEditToolsCommand}"
- CommandParameter="{Binding ElementName=HeaderFooterContent}"
- Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="页眉页脚" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </Button>
- <Button
- Name="BatesContent"
- Command="{Binding SetEditToolsCommand}"
- CommandParameter="{Binding ElementName=BatesContent}"
- Style="{StaticResource InsideBarBtnStyle}">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="贝茨码" />
- <Path
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Data="M0 0L4 4L8 0H0Z"
- Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="8" />
- </Path.RenderTransform>
- </Path>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource InsideBarBtnStyle}" Visibility="Collapsed">
- <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
- <StackPanel Margin="0,0,8,0">
- <Border
- Width="30"
- Height="30"
- Background="LightSeaGreen" />
- </StackPanel>
- <TextBlock VerticalAlignment="Center" Text="裁剪" />
- </StackPanel>
- </Button>
- </WrapPanel>
- </Border>
- </Grid>
- </UserControl>
|