|
@@ -24,107 +24,22 @@ using System.Windows.Media;
|
|
|
|
|
|
namespace PDF_Office.ViewModels.Tools
|
|
|
{
|
|
|
- public class AnnotPropertyPanel
|
|
|
- {
|
|
|
- public AnnotHandlerEventArgs annot;
|
|
|
- public event EventHandler<Dictionary<AnnotArgsType, object>> DataChanged;
|
|
|
- public event EventHandler<object> DefaultStored;
|
|
|
- public AnnotPropertyPanel()
|
|
|
- {
|
|
|
- }
|
|
|
-
|
|
|
- public void DataChangedInvoke(object sender,Dictionary<AnnotArgsType, object> keyValues)
|
|
|
- {
|
|
|
- DataChanged?.Invoke(sender,keyValues);
|
|
|
- }
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
- public class AnnotToolContentViewModel : BindableBase, INavigationAware
|
|
|
+ public sealed partial class AnnotToolContentViewModel : BindableBase, INavigationAware
|
|
|
{
|
|
|
+
|
|
|
|
|
|
|
|
|
- #region 注释工具
|
|
|
-
|
|
|
- private Brush highLightColor = new SolidColorBrush(Color.FromRgb(0xFF, 0xBB, 0x00));
|
|
|
- public Brush HighLightColor
|
|
|
- {
|
|
|
- get { return highLightColor; }
|
|
|
- set { SetProperty(ref highLightColor, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private double highLightOpacity = 1;
|
|
|
- public double HighLightOpacity
|
|
|
- {
|
|
|
- get { return highLightOpacity; }
|
|
|
- set { SetProperty(ref highLightOpacity, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private Brush underLine = new SolidColorBrush(Color.FromRgb(0xFF, 0xBB, 0x00));
|
|
|
- public Brush UnderLineColor
|
|
|
- {
|
|
|
- get { return underLine; }
|
|
|
- set { SetProperty(ref underLine, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private double underLineOpacity = 1;
|
|
|
- public double UnderLineOpacity
|
|
|
- {
|
|
|
- get { return underLineOpacity; }
|
|
|
- set { SetProperty(ref underLineOpacity, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private Brush squigglyColor = new SolidColorBrush(Color.FromRgb(0xFF, 0xBB, 0x00));
|
|
|
- public Brush SquigglyColor
|
|
|
- {
|
|
|
- get { return squigglyColor; }
|
|
|
- set { SetProperty(ref squigglyColor, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private double squigglyOpacity = 1;
|
|
|
- public double SquigglyOpacity
|
|
|
- {
|
|
|
- get { return squigglyOpacity; }
|
|
|
- set { SetProperty(ref squigglyOpacity, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private Brush strikeoutColor = new SolidColorBrush(Color.FromRgb(0xFF, 0xBB, 0x00));
|
|
|
- public Brush StrikeoutColor
|
|
|
- {
|
|
|
- get { return strikeoutColor; }
|
|
|
- set { SetProperty(ref strikeoutColor, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private double strikeoutOpacity = 1;
|
|
|
- public double StrikeoutOpacity
|
|
|
- {
|
|
|
- get { return strikeoutOpacity; }
|
|
|
- set { SetProperty(ref strikeoutOpacity, value); }
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
-
|
|
|
- private CPDFViewer PDFViewer;
|
|
|
- private ViewContentViewModel viewContentViewModel;
|
|
|
- public DelegateCommand<CustomIconToggleBtn> MyToolsCommand { get; set; }
|
|
|
-
|
|
|
public AnnotToolContentViewModel(IRegionManager regionManager)
|
|
|
{
|
|
|
region = regionManager;
|
|
|
|
|
|
MyToolsCommand = new DelegateCommand<CustomIconToggleBtn>(BtnMyTools_Click);
|
|
|
PropertyRegionName = Guid.NewGuid().ToString();
|
|
|
+ InitDefaultValue();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
private Dictionary<string, bool> ToolExpandDict = new Dictionary<string, bool>();
|
|
|
public void BtnMyTools_Click(CustomIconToggleBtn annotBtn)
|
|
|
{
|