12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <UserControl x:Class="PDF_Office.Views.Tools.ToolsContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels" xmlns:tools="clr-namespace:PDF_Office.ViewModels.Tools" d:DataContext="{d:DesignInstance Type=tools:ToolsContentViewModel}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- d:DesignHeight="40"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../Styles/ToolsBtnStyle.xaml"/>
- <ResourceDictionary Source="../../Styles/ToolsMenuStyle.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
- <Grid>
- <WrapPanel Height="40" HorizontalAlignment="Center">
- <Button x:Name="btnCompress" Style="{StaticResource ToolsBtnStyle}" 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>
-
- <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}">
- <MenuItem.Header>
- <TextBlock Text="设置密码" ></TextBlock>
- </MenuItem.Header>
- </MenuItem>
- <MenuItem Name="MenuDecrypt" Style="{StaticResource ToolsMenuStyle}">
- <MenuItem.Header>
- <TextBlock Text="解除安全性设置"></TextBlock>
- </MenuItem.Header>
- </MenuItem>
- </MenuItem>
- </Menu>
- </WrapPanel>
- </Grid>
- </Border>
- </Grid>
- </UserControl>
|