|
@@ -107,12 +107,10 @@ namespace PDF_Office.ViewModels.Tools
|
|
|
{
|
|
|
if (item is CustomIconToggleBtn customIconToggle)
|
|
|
{
|
|
|
- if (customIconToggle.Tag.ToString() != "ShowAnnot")
|
|
|
- {
|
|
|
- customIconToggle.IsChecked = false;
|
|
|
- }
|
|
|
+ customIconToggle.IsChecked = false;
|
|
|
}
|
|
|
}
|
|
|
+ BtnShowAnnotIsChecked = true;
|
|
|
BtnHandIsChecked = true;
|
|
|
PDFViewer.SetMouseMode(MouseModes.PanTool);
|
|
|
viewContentViewModel.SelectedPrpoertyPanel("PropertyPanelContent", null);
|
|
@@ -131,7 +129,7 @@ namespace PDF_Office.ViewModels.Tools
|
|
|
bool isSnapshotEdit = false;
|
|
|
AnnotHandlerEventArgs annotArgs = null;
|
|
|
|
|
|
- if(annotBtn.Name== "BtnShowAnnot")
|
|
|
+ if (annotBtn.Name == "BtnShowAnnot")
|
|
|
{
|
|
|
PDFViewer.SetDrawAnnot((bool)annotBtn.IsChecked);
|
|
|
return;
|