123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <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 Name="RedactionContent" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding SetEditToolsCommand }" CommandParameter="{Binding ElementName=RedactionContent}" >
- <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 x: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 Name="HeaderFooterContent" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding SetEditToolsCommand }" CommandParameter="{Binding ElementName=HeaderFooterContent}">
- <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="BatesContent" Style="{StaticResource InsideBarBtnStyle }" Command="{Binding SetEditToolsCommand }" CommandParameter="{Binding ElementName=BatesContent}">
- <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>
|