|
@@ -97,6 +97,7 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
{
|
|
|
ImagePreviewVisibility = Visibility.Collapsed;
|
|
|
BtnGOorBackVisibility = Visibility.Collapsed;
|
|
|
+ BtnLocationIsEnabled = false;
|
|
|
}
|
|
|
return pageNumTextContent;
|
|
|
}
|
|
@@ -314,6 +315,17 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private bool btnLocationIsChecked = false;
|
|
|
+
|
|
|
+ public bool BtnLocationIsChecked
|
|
|
+ {
|
|
|
+ get { return btnLocationIsChecked; }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ SetProperty(ref btnLocationIsChecked, value);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private WriteableBitmap previewImage;
|
|
|
|
|
|
public WriteableBitmap PreviewImage
|
|
@@ -671,14 +683,14 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
/// <summary>
|
|
|
/// 定位目标范围
|
|
|
/// </summary>
|
|
|
- /// <param name="obj"></param>
|
|
|
+ /// <param name="obj"></param>
|
|
|
private void LocationPage(object obj)
|
|
|
{
|
|
|
pdfViewer.EnableDrawSelectArea(true);
|
|
|
historyPageIndex = pdfViewer.CurrentIndex;
|
|
|
PageNumTextIsEnabled = false;
|
|
|
isSelected = false;
|
|
|
-
|
|
|
+ BtnLocationIsChecked = true;
|
|
|
bool isExist = false;
|
|
|
if (region.Regions.ContainsRegionWithName(viewContentViewModel.TipContentRegionName))
|
|
|
{
|
|
@@ -696,7 +708,7 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
{
|
|
|
region.RequestNavigate(viewContentViewModel.TipContentRegionName, "LinkAnnotTip");
|
|
|
}
|
|
|
- if(string.IsNullOrEmpty(PageNumTextContent))
|
|
|
+ //if(string.IsNullOrEmpty(PageNumTextContent))
|
|
|
viewContentViewModel.ShowTip(true);
|
|
|
}
|
|
|
|
|
@@ -953,7 +965,7 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
{
|
|
|
ImagePreviewVisibility = Visibility.Visible;
|
|
|
BtnGOorBackVisibility = Visibility.Visible;
|
|
|
-
|
|
|
+ BtnLocationIsEnabled = true;
|
|
|
int dpiHeight = (int)ImagePreviewHeight;
|
|
|
int dpiWidth = (int)ImagePreviewWidth;
|
|
|
if (dpiHeight <= 0 || dpiWidth <= 0)
|
|
@@ -1107,6 +1119,7 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
pdfViewer.GoToPage(historyPageIndex);
|
|
|
//viewContentViewModel.LinkAnnotTipVisibility = Visibility.Collapsed;
|
|
|
viewContentViewModel.TipVisible = Visibility.Collapsed;
|
|
|
+ BtnLocationIsChecked = false;
|
|
|
}
|
|
|
}
|
|
|
}
|