|
@@ -66,6 +66,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
#region 是否为多选内容
|
|
#region 是否为多选内容
|
|
|
|
|
|
private bool _isMultiSelectImage = false;
|
|
private bool _isMultiSelectImage = false;
|
|
|
|
+
|
|
public bool IsMultiSelectImage
|
|
public bool IsMultiSelectImage
|
|
{ get { return _isMultiSelectImage; } set { SetProperty(ref _isMultiSelectImage, value); } }
|
|
{ get { return _isMultiSelectImage; } set { SetProperty(ref _isMultiSelectImage, value); } }
|
|
|
|
|
|
@@ -106,7 +107,25 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
SetProperty(ref _transpent, value);
|
|
SetProperty(ref _transpent, value);
|
|
if (Transpent == 100 || Transpent == 75 || Transpent == 50 || (Transpent == 25))
|
|
if (Transpent == 100 || Transpent == 75 || Transpent == 50 || (Transpent == 25))
|
|
{
|
|
{
|
|
- TextEditEvent.Transparency = (int)((_transpent * 255) / 100.0);
|
|
|
|
|
|
+ switch (Transpent)
|
|
|
|
+ {
|
|
|
|
+ case 25:
|
|
|
|
+ OpacitySelectedIndex = 0;
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ case 50:
|
|
|
|
+ OpacitySelectedIndex = 1;
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ case 75:
|
|
|
|
+ OpacitySelectedIndex = 2;
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ case 100:
|
|
|
|
+ OpacitySelectedIndex = 3;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ TextEditEvent.Transparency = (int)Math.Ceiling((double)(_transpent * 255) / 100.0);
|
|
TextEditEvent.UpdatePDFEditByEventArgs();
|
|
TextEditEvent.UpdatePDFEditByEventArgs();
|
|
OpacityUI = _transpent / 100.0;
|
|
OpacityUI = _transpent / 100.0;
|
|
}
|
|
}
|
|
@@ -122,6 +141,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.PDFEdit
|
|
|
|
|
|
public bool IsCrop
|
|
public bool IsCrop
|
|
{ get { return _isCrop; } set { SetProperty(ref _isCrop, value); } }
|
|
{ get { return _isCrop; } set { SetProperty(ref _isCrop, value); } }
|
|
|
|
+
|
|
public TextEditToolContentViewModel _viewModel1;
|
|
public TextEditToolContentViewModel _viewModel1;
|
|
|
|
|
|
//public ImageEditPropertyViewModel(TextEditToolContentViewModel viewModel1)
|
|
//public ImageEditPropertyViewModel(TextEditToolContentViewModel viewModel1)
|