123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mainpage="clr-namespace:PDF_Master.Strings.MainPage">
- <!-- 快捷工具展开收缩 -->
- <ContextMenu x:Key="ExpendToolsContextMenu" FontSize="14">
- <MenuItem
- Name="ExpendMenuItem"
- Width="92"
- Header="展开"
- IsEnabled="True" />
- </ContextMenu>
- <ContextMenu x:Key="CustomFontStyleFlyoutMenu" FontSize="14">
- <MenuItem
- Name="ChangeStyleMenuItem"
- Header="{x:Static mainpage:MainPage.RighMenuText_Redefine}"
- IsEnabled="True" />
- <MenuItem
- Name="BackStyleMenuItem"
- Header="{x:Static mainpage:MainPage.RighMenuText_RestoreDefaultSettings}"
- IsEnabled="True" />
- </ContextMenu>
- <!-- 便签ToolTip -->
- <Style x:Key="FlowToolTip" TargetType="ToolTip">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate>
- <Grid>
- <Border
- Background="{StaticResource color.sys.layout.dark.bg}"
- BorderBrush="{StaticResource color.sys.layout.dark.bg}"
- BorderThickness="4"
- CornerRadius="4">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="7"
- Direction="0"
- Opacity="0.09"
- ShadowDepth="0"
- Color="Black" />
- </Border.Effect>
- </Border>
- <TextBlock
- Margin="16,8,16,8"
- FontSize="13"
- Foreground="{StaticResource color.sys.text.anti.norm}"
- Text="{TemplateBinding ContentControl.Content}"
- TextWrapping="Wrap" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 注释 - 高亮、下划线、删除线 -右键菜单 -->
- <Style x:Key="UIElementMenuItem" TargetType="MenuItem">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="MenuItem">
- <Grid
- Width="{TemplateBinding Width}"
- Height="24"
- Background="#FBFBFD">
- <ContentPresenter Content="{TemplateBinding Header}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 注释-内容选择-右键菜单 -->
- <ContextMenu
- x:Key="SnapshotContextMenu"
- Background="{StaticResource color.sys.layout.mg}"
- FontSize="14">
- <MenuItem
- Name="BtnSnapCopy"
- Header="{x:Static mainpage:MainPage.ContentSelection_Copy}"
- IsEnabled="True" InputGestureText="Ctrl+C">
- <!--<MenuItem.Icon>
- <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="3.0000" Y="0" />
- </Path.RenderTransform>
- </Path>
- </MenuItem.Icon>-->
- </MenuItem>
- <MenuItem
- Name="BtnSnapExport"
- Header="{x:Static mainpage:MainPage.ContentSelection_Output}"
- IsEnabled="True">
- <!--<MenuItem.Icon>
- <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="3.0000" Y="0" />
- </Path.RenderTransform>
- </Path>
- </MenuItem.Icon>-->
- <MenuItem Name="MenuExportPNG" Header="PNG" />
- <MenuItem Name="MenuExportJPG" Header="JPG" />
- <MenuItem Name="MenuExportPDF" Header="PDF" />
- </MenuItem>
- <MenuItem
- Name="BtnSnapCropping"
- Header="{x:Static mainpage:MainPage.ContentSelection_Crop}"
- IsEnabled="True">
- <!--<MenuItem.Icon>
- <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="3.0000" Y="0" />
- </Path.RenderTransform>
- </Path>
- </MenuItem.Icon>-->
- </MenuItem>
- <MenuItem
- Name="BtnSnapZoom"
- Header="{x:Static mainpage:MainPage.ContentSelection_ZoomArea}"
- IsEnabled="True">
- <!--<MenuItem.Icon>
- <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="3.0000" Y="0" />
- </Path.RenderTransform>
- </Path>
- </MenuItem.Icon>-->
- </MenuItem>
- <MenuItem
- Name="BtnSnapPrint"
- Header="{x:Static mainpage:MainPage.ContentSelection_Print}"
- IsEnabled="True" InputGestureText="Ctrl+P">
- <!--<MenuItem.Icon>
- <Path Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z" Fill="Black">
- <Path.RenderTransform>
- <TranslateTransform X="3.0000" Y="0" />
- </Path.RenderTransform>
- </Path>
- </MenuItem.Icon>-->
- </MenuItem>
- </ContextMenu>
- <ContextMenu x:Key="RedactionContextMenu">
- <MenuItem Name="MenuDelete" Header="Delete" />
- <Separator Style="{StaticResource HorizontalSeparatorStyle}" />
- <MenuItem Name="MenuProperties" Header="Properties..." />
- <MenuItem Name="MenuSetDeufalt" Header="Use Current Properties as New Default" />
- <Separator Style="{StaticResource HorizontalSeparatorStyle}" />
- <MenuItem Name="MenuRepeat" Header="Repeat mark across pages" />
- <MenuItem Name="MenuApply" Header="Apply Redactions" />
- <MenuItem Name="MenuErase" Header="Erase Redactions" />
- </ContextMenu>
- <Separator
- x:Key="Separator"
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <!-- 阅读页点击空白处菜单 -->
- <ContextMenu x:Key="ViewerContextMenu" FontSize="14">
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_Paste}"
- InputGestureText="Ctrl+V"
- Tag="Paste" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_AddComment}" Tag="AddAnnotation">
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Freehand}" Tag="AnnotFreehand" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Text}" Tag="AnnotFreeText" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_StickyNote}" Tag="AnnotSticky" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Rectangle}" Tag="AnnotSquare" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Oval}" Tag="AnnotCircle" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Arrow}" Tag="AnnotArrow" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_StraightLine}" Tag="AnnotLine" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Link}" Tag="AnnotLink" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Stamp}" Tag="AnnotStamp" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceAddComment_Signature}" Tag="AnnotAutograph" />
- </MenuItem>
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_HideAnnotations}" Tag="HiddenAnnot" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ShowAnnotations}" Tag="DisplayAnnot" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_AddBookmarks}" Tag="AddBookMark" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_RemoveBookmarks}" Tag="DelBookMark" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_Tools}" Tag="ToolMode">
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_DefaultTool}"
- IsCheckable="True"
- Tag="default" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ScrollTool}"
- IsCheckable="True"
- Tag="roll" />
- <MenuItem
- Header="放大镜"
- IsCheckable="True"
- Tag="magnifier"
- Visibility="Collapsed" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ContentSelection}"
- IsCheckable="True"
- Tag="content" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ZoomtoSelectedArea}"
- IsCheckable="True"
- Tag="zoom"
- Visibility="Collapsed" />
- </MenuItem>
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ReadModeOn}" Tag="ReadModel" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_ReadModeOff}" Tag="UnReadModel" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_Zoom}" Tag="ViewZoom">
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceViewZoom_FitWidth}"
- IsCheckable="True"
- Tag="FitWidth" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceViewZoom_FitPage}"
- IsCheckable="True"
- Tag="FitHeight" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceViewZoom_ActualSize}"
- IsCheckable="True"
- Tag="FitSize" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceViewZoom_ZoomIn}"
- IsCheckable="True"
- Tag="enlarge" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpaceViewZoom_ZoomOut}"
- IsCheckable="True"
- Tag="narrow" />
- </MenuItem>
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_PageDisPlay}" Tag="PageDisplay">
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpacePageDisPlay_SinglePage}"
- IsCheckable="True"
- Tag="SingleView" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpacePageDisPlay_SinglePageContinuous}"
- IsCheckable="True"
- Tag="SingleContinueView" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpacePageDisPlay_TwoPage}"
- IsCheckable="True"
- Tag="DoubleView" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpacePageDisPlay_TwoPageContinuous}"
- IsCheckable="True"
- Tag="DoubleContinueView" />
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpacePageDisPlay_BookMode}"
- IsCheckable="True"
- Tag="BookMode" />
- </MenuItem>
- <MenuItem
- Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_HighlightLinks}"
- IsCheckable="True"
- Tag="HighlightLinks" />
- <Separator
- Height="1"
- BorderBrush="#33000000"
- BorderThickness="1"
- Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_Search}" InputGestureText="Ctrl+F" Tag="Select" />
- <MenuItem Header="{x:Static mainpage:MainPage.ViewRightMenuBlankSpace_Print}" InputGestureText="Ctrl+P" Tag="Print" />
- <ContextMenu.InputBindings>
- <KeyBinding
- Key="P"
- Command="{Binding PrintCommand}"
- Modifiers="Ctrl" />
- <KeyBinding
- Key="F"
- Command="{Binding SelectCommand}"
- Modifiers="Ctrl" />
- </ContextMenu.InputBindings>
- </ContextMenu>
- </ResourceDictionary>
|