123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <UserControl
- x:Class="PDF_Master.Views.PropertyPanel.AnnotPanel.SnapshotEditMenu"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:AnnotPanel="clr-namespace:PDF_Master.ViewModels.PropertyPanel.AnnotPanel"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.PropertyPanel.AnnotPanel"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- d:DataContext="{d:DesignInstance Type=AnnotPanel:SnapshotEditMenuViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="#FFF8F8F8"
- mc:Ignorable="d">
- <Grid>
- <StackPanel Orientation="Vertical">
- <Button
- x:Name="BtnSnapCopy"
- Height="40"
- Padding="5"
- HorizontalContentAlignment="Left"
- Background="#FFF8F8F8"
- BorderThickness="0"
- Command="{Binding SnapCopyCommand}"
- FontSize="14"
- Tag="ReSnapCopy">
- <Button.Content>
- 复制
- </Button.Content>
- </Button>
- <Button
- x:Name="BtnSnapExport"
- Height="40"
- Padding="5"
- HorizontalContentAlignment="Left"
- Background="#FFF8F8F8"
- BorderThickness="0"
- Click="BtnSnapExport_Click"
- FontSize="14"
- Initialized="BtnSnapExport_Initialized"
- Tag="SnapExport">
- <Button.Content>
- <StackPanel Orientation="Horizontal">
- <TextBlock Width="160">导出</TextBlock>
- <Path
- Margin="0,0,0,0"
- Data="M7.56438 6.49996L3.59473 10.4696L4.65539 11.5303L9.15537 7.03029C9.44826 6.7374 9.44826 6.26252 9.15537 5.96963L4.65539 1.46964L3.59473 2.5303L7.56438 6.49996Z"
- Fill="#616469" />
- </StackPanel>
- </Button.Content>
- <Button.ContextMenu>
- <ContextMenu Name="MenuExport" Placement="Right">
- <MenuItem
- Name="MenuExportPNG"
- Command="{Binding ExportPNGCommand}"
- Header="PNG" />
- <MenuItem
- Name="MenuExportJPG"
- Command="{Binding ExportJPGCommand}"
- Header="JPG" />
- <MenuItem
- Name="MenuExportPDF"
- Command="{Binding ExportPDFCommand}"
- Header="PDF" />
- </ContextMenu>
- </Button.ContextMenu>
- </Button>
- <Button
- x:Name="BtnSnapCropping"
- Height="40"
- Padding="5"
- HorizontalContentAlignment="Left"
- Background="#FFF8F8F8"
- BorderThickness="0"
- Command="{Binding CroppingCommand}"
- FontSize="14"
- Tag="SnapCropping">
- <Button.Content>
- 裁剪
- </Button.Content>
- </Button>
- <Button
- x:Name="BtnSnapZoom"
- Height="40"
- Padding="5"
- HorizontalContentAlignment="Left"
- Background="#FFF8F8F8"
- BorderThickness="0"
- FontSize="14"
- Tag="SnapZoom">
- <Button.Content>
- 缩放至所选区域
- </Button.Content>
- </Button>
- <Button
- x:Name="BtnSnapPrint"
- Height="40"
- Padding="5"
- HorizontalContentAlignment="Left"
- Background="#FFF8F8F8"
- BorderThickness="0"
- Command="{Binding PrintCommand}"
- FontSize="14"
- Tag="SnapPrint">
- <Button.Content>
- 打印
- </Button.Content>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|