|
@@ -130,7 +130,7 @@ namespace PDF_Office.ViewModels.EditTools.Redaction
|
|
|
{
|
|
|
case "MenuDelete":
|
|
|
item.Command = ApplicationCommands.Delete;
|
|
|
- item.CommandParameter = (UIElement)item;
|
|
|
+ item.CommandParameter = (UIElement)obj.Sender;
|
|
|
break;
|
|
|
case "MenuSetDeufalt":
|
|
|
item.Command = new DelegateCommand<RedactionCommandEventArgs>(SetDefualtProperty);
|
|
@@ -169,6 +169,9 @@ namespace PDF_Office.ViewModels.EditTools.Redaction
|
|
|
keyValues.Add(ParameterNames.DataModel,args.args.AnnotEventArgsList[0] as RedactionAnnotArgs);
|
|
|
|
|
|
Settings.Default.RedactionsSettings.SetDefualtValue(annoteargs.Content, annoteargs.LineColor,annoteargs.BgColor,annoteargs.FontColor, (int)annoteargs.FontSize,string.IsNullOrEmpty(annoteargs.Content) ? false : true, annoteargs.Align, annoteargs.FontFamily.ToString(),annoteargs.FontWeight);
|
|
|
+
|
|
|
+ PDFViewer.SetMouseMode(MouseModes.AnnotCreate);
|
|
|
+ PDFViewer.SetToolParam(annoteargs);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|