private static void run_AnnotationEdit_MouseDown(object sender, MouseButtonEventArgs e) { Run run = (Run)sender; PDFAnnotation pdf_annotation = (PDFAnnotation)run.Tag; PDFAnnotationEditorControl pdf_annotation_editor_control = new PDFAnnotationEditorControl(); pdf_annotation_editor_control.SetAnnotation(pdf_annotation); AugmentedToolWindow pdf_annotation_editor_control_popup = new AugmentedToolWindow(pdf_annotation_editor_control, "Edit Annotation"); pdf_annotation_editor_control_popup.IsOpen = true; e.Handled = true; }
private void ButtonAnnotationDetails_MouseDown(object sender, MouseButtonEventArgs e) { // If we have never had a pop-up, create it now if (null == pdf_annotation_editor_control_popup) { PDFAnnotationEditorControl pdf_annotation_editor_control = new PDFAnnotationEditorControl(); pdf_annotation_editor_control.SetAnnotation(pdf_annotation); pdf_annotation_editor_control_popup = new AugmentedToolWindow(pdf_annotation_editor_control, "Edit Annotation"); } pdf_annotation_editor_control_popup.IsOpen = true; e.Handled = true; }