|
@@ -59,35 +59,6 @@ namespace PDF_Office.ViewModels.Form
|
|
|
set { SetProperty(ref _isScrollText, value); ChangeFieldValue("IsScrollText"); }
|
|
|
}
|
|
|
|
|
|
- private ResetColor _resetColorOne = new ResetColor();
|
|
|
- public ResetColor ResetColorOne
|
|
|
- {
|
|
|
- get { return _resetColorOne; }
|
|
|
- set { SetProperty(ref _resetColorOne, value); }
|
|
|
- }
|
|
|
-
|
|
|
- private ResetColor _resetColorTwo = new ResetColor();
|
|
|
- public ResetColor ResetColorTwo
|
|
|
- {
|
|
|
- get { return _resetColorTwo; }
|
|
|
- set { SetProperty(ref _resetColorTwo, value); }
|
|
|
- }
|
|
|
-
|
|
|
- private ResetColor _resetColorThree = new ResetColor();
|
|
|
- public ResetColor ResetColorThree
|
|
|
- {
|
|
|
- get { return _resetColorThree; }
|
|
|
- set { SetProperty(ref _resetColorThree, value); }
|
|
|
- }
|
|
|
-
|
|
|
- private ResetColor _resetColorForth = new ResetColor();
|
|
|
- public ResetColor ResetColorForth
|
|
|
- {
|
|
|
- get { return _resetColorForth; }
|
|
|
- set { SetProperty(ref _resetColorForth, value); }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
#endregion
|
|
|
|
|
|
private FontFamily _fontFamily;
|
|
@@ -147,6 +118,7 @@ namespace PDF_Office.ViewModels.Form
|
|
|
|
|
|
public DelegateCommand<object> IsMultiLineCheckedCommand { get; set; }
|
|
|
public DelegateCommand<object> IsScrollToDisplayCheckedCommand { get; set; }
|
|
|
+ public DelegateCommand<object> LineStyleCommand { get; set; }
|
|
|
#endregion
|
|
|
|
|
|
#region 变量
|
|
@@ -214,10 +186,27 @@ namespace PDF_Office.ViewModels.Form
|
|
|
|
|
|
IsMultiLineCheckedCommand = new DelegateCommand<object>(IsMultiLineChecked);
|
|
|
IsScrollToDisplayCheckedCommand = new DelegateCommand<object>(IsScrollToDisplayChecked);
|
|
|
+ LineStyleCommand = new DelegateCommand<object>(LineStyleBtnEvent);
|
|
|
ChangeValueHandler -= ChangeValue;
|
|
|
ChangeValueHandler += ChangeValue;
|
|
|
}
|
|
|
|
|
|
+ private void LineStyleBtnEvent(object obj)
|
|
|
+ {
|
|
|
+ if(obj != null)
|
|
|
+ {
|
|
|
+ switch((string)obj)
|
|
|
+ {
|
|
|
+ case "Solid":
|
|
|
+ IsSolid = ComPDFKit.PDFAnnotation.C_BORDER_STYLE.BS_SOLID;
|
|
|
+ break;
|
|
|
+ case "Dotted":
|
|
|
+ IsSolid = ComPDFKit.PDFAnnotation.C_BORDER_STYLE.BS_DASHDED;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void IsScrollToDisplayChecked(object obj)
|
|
|
{
|
|
|
if(obj != null)
|
|
@@ -480,6 +469,7 @@ namespace PDF_Office.ViewModels.Form
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+
|
|
|
PDFViewer.SetToolParam(new AnnotHandlerEventArgs());
|
|
|
isCreateWidget = false;
|
|
|
}
|
|
@@ -529,7 +519,7 @@ namespace PDF_Office.ViewModels.Form
|
|
|
|
|
|
case FormAttributeType.HeightSize:
|
|
|
textBoxArgs.DefaultWidth = HeightSize;
|
|
|
- // AttribEvent?.UpdateAttrib(AnnotAttrib.h, HeightSize);
|
|
|
+ //AttribEvent?.UpdateAttrib(AnnotAttrib.w, HeightSize);
|
|
|
break;
|
|
|
|
|
|
case FormAttributeType.BorderThiness:
|
|
@@ -546,6 +536,10 @@ namespace PDF_Office.ViewModels.Form
|
|
|
textBoxArgs.FontColor = ContentColor;
|
|
|
AttribEvent?.UpdateAttrib(AnnotAttrib.FontColor, ContentColor);
|
|
|
break;
|
|
|
+ case FormAttributeType.FillColor:
|
|
|
+ textBoxArgs.BgColor = FillColor;
|
|
|
+ AttribEvent?.UpdateAttrib(AnnotAttrib.FillColor, FillColor);
|
|
|
+ break;
|
|
|
|
|
|
case FormAttributeType.IsReadOnly:
|
|
|
textBoxArgs.ReadOnly = IsReadOnly;
|
|
@@ -564,7 +558,6 @@ namespace PDF_Office.ViewModels.Form
|
|
|
|
|
|
}
|
|
|
AttribEvent?.UpdateAnnot();
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void ChangeFieldValue(string tag)
|