|
@@ -1,18 +1,8 @@
|
|
|
using System;
|
|
|
-using System.Collections.Generic;
|
|
|
using System.Collections.ObjectModel;
|
|
|
-using System.Linq;
|
|
|
-using System.Text;
|
|
|
-using System.Threading.Tasks;
|
|
|
using System.Windows;
|
|
|
using System.Windows.Controls;
|
|
|
-using System.Windows.Data;
|
|
|
-using System.Windows.Documents;
|
|
|
using System.Windows.Input;
|
|
|
-using System.Windows.Media;
|
|
|
-using System.Windows.Media.Imaging;
|
|
|
-using System.Windows.Navigation;
|
|
|
-using System.Windows.Shapes;
|
|
|
|
|
|
namespace ComPDFKit.Controls.PDFControlUI
|
|
|
{
|
|
@@ -165,9 +155,21 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
|
if (textBox.DataContext is CPDFAnnotationListUI.ReplyData replyData)
|
|
|
{
|
|
|
replyData.ReplyAnnotation.SetContent(textBox.Text);
|
|
|
+ InvokeReplyListChanged();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void UserControl_Loaded(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ ReplyDeleted -= AnnotationReplyListControl_ReplyDeleted;
|
|
|
+ ReplyDeleted += AnnotationReplyListControl_ReplyDeleted;
|
|
|
+ }
|
|
|
+
|
|
|
+ private void AnnotationReplyListControl_ReplyDeleted(object sender, CPDFAnnotationListUI.ReplyData e)
|
|
|
+ {
|
|
|
+ ReplyListSource.Remove(e);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public class ShowContentBoxCommand : ICommand
|
|
@@ -204,8 +206,8 @@ namespace ComPDFKit.Controls.PDFControlUI
|
|
|
if (parameter is CPDFAnnotationListUI.ReplyData replyData)
|
|
|
{
|
|
|
replyData.ReplyAnnotation.RemoveAnnot();
|
|
|
- AnnotationReplyListControl.InvokeReplyListChanged();
|
|
|
AnnotationReplyListControl.InvokeReplyDeleted(replyData);
|
|
|
+ AnnotationReplyListControl.InvokeReplyListChanged();
|
|
|
}
|
|
|
}
|
|
|
}
|