|
@@ -771,7 +771,7 @@ namespace edit_ctrl_demo
|
|
|
if(lastPDFEditEvent!=null)
|
|
|
{
|
|
|
MenuItem rotateLeftMenu = new MenuItem();
|
|
|
- rotateLeftMenu.Header = "左旋转";
|
|
|
+ rotateLeftMenu.Header = "Left Rotate";
|
|
|
rotateLeftMenu.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -783,7 +783,7 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(rotateLeftMenu);
|
|
|
|
|
|
MenuItem rotateRightMenu = new MenuItem();
|
|
|
- rotateRightMenu.Header = "右旋转";
|
|
|
+ rotateRightMenu.Header = "Right Rotate";
|
|
|
rotateRightMenu.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -795,7 +795,7 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(rotateRightMenu);
|
|
|
|
|
|
MenuItem replaceMenu = new MenuItem();
|
|
|
- replaceMenu.Header = "替换";
|
|
|
+ replaceMenu.Header = "Replace";
|
|
|
replaceMenu.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -813,7 +813,7 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(replaceMenu);
|
|
|
|
|
|
MenuItem exportMenu = new MenuItem();
|
|
|
- exportMenu.Header = "导出";
|
|
|
+ exportMenu.Header = "Export";
|
|
|
exportMenu.Click += (o, p) =>
|
|
|
{
|
|
|
if (pdfViewControl != null && pdfViewControl.PDFView!=null)
|
|
@@ -851,13 +851,13 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(exportMenu);
|
|
|
|
|
|
MenuItem opacityMenu = new MenuItem();
|
|
|
- opacityMenu.Header = "透明度";
|
|
|
+ opacityMenu.Header = "Opacity";
|
|
|
editCommand.PopupMenu.Items.Add(opacityMenu);
|
|
|
|
|
|
AppendOpacityMenu(opacityMenu);
|
|
|
|
|
|
MenuItem horizonMirror = new MenuItem();
|
|
|
- horizonMirror.Header = "水平镜像";
|
|
|
+ horizonMirror.Header = "HMirror";
|
|
|
horizonMirror.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -869,7 +869,7 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(horizonMirror);
|
|
|
|
|
|
MenuItem verticalMirror = new MenuItem();
|
|
|
- verticalMirror.Header = "垂直镜像";
|
|
|
+ verticalMirror.Header = "VMirror";
|
|
|
verticalMirror.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -881,7 +881,7 @@ namespace edit_ctrl_demo
|
|
|
editCommand.PopupMenu.Items.Add(verticalMirror);
|
|
|
|
|
|
MenuItem cropMenu = new MenuItem();
|
|
|
- cropMenu.Header = "裁剪";
|
|
|
+ cropMenu.Header = "Crop";
|
|
|
cropMenu.Click += (o, p) =>
|
|
|
{
|
|
|
if (lastPDFEditEvent != null && lastPDFEditEvent.EditType == CPDFEditType.EditImage)
|
|
@@ -892,16 +892,13 @@ namespace edit_ctrl_demo
|
|
|
};
|
|
|
editCommand.PopupMenu.Items.Add(cropMenu);
|
|
|
|
|
|
- editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "复制", Command = ApplicationCommands.Copy, CommandTarget = (UIElement)sender });
|
|
|
- editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "剪切", Command = ApplicationCommands.Cut, CommandTarget = (UIElement)sender });
|
|
|
- editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "删除", Command = ApplicationCommands.Delete, CommandTarget = (UIElement)sender });
|
|
|
+ editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "Copy", Command = ApplicationCommands.Copy, CommandTarget = (UIElement)sender });
|
|
|
+ editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "Cut", Command = ApplicationCommands.Cut, CommandTarget = (UIElement)sender });
|
|
|
+ editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "Delete", Command = ApplicationCommands.Delete, CommandTarget = (UIElement)sender });
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(Clipboard.ContainsImage())
|
|
|
- {
|
|
|
- editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "粘贴", Command = ApplicationCommands.Paste, CommandTarget = (UIElement)sender });
|
|
|
- }
|
|
|
+ editCommand.PopupMenu.Items.Add(new MenuItem() { Header = "Paste", Command = ApplicationCommands.Paste, CommandTarget = (UIElement)sender });
|
|
|
}
|
|
|
}
|
|
|
|