private void OnAnnotationCreated(object sender, AnnotationsCreatedEventArgs e)
        {
            foreach (var annot in e.CreatedAnnotations)
            {
                if (!String.IsNullOrWhiteSpace(this.AnnotationAuthor))
                {
                    annot.Author = this.AnnotationAuthor;
                }

                //this.AnnotationManager.SelectAnnotation(annot);
            }

            // Switch tool mode to annotation edit, if created annotation
            // is not a TextMarkup/FreeHand annotation for UX puposes
            if (e.CreatedAnnotations.Count == 1)
            {
                var annot = e.CreatedAnnotations[0];

                if (annot as TextMarkup == null && annot as FreeHand == null)
                {
                    this.DocumentViewer.ToolMode =
                        DocumentViewer.ToolModes.AnnotationEdit;
                }
            }
        }
        private void OnAnnotationCreated(object sender, AnnotationsCreatedEventArgs e)
        {
            foreach (var annot in e.CreatedAnnotations)
            {
                if( !String.IsNullOrWhiteSpace(this.AnnotationAuthor) )
                    annot.Author = this.AnnotationAuthor;

                //this.AnnotationManager.SelectAnnotation(annot);
            }

            // Switch tool mode to annotation edit, if created annotation
            // is not a TextMarkup/FreeHand annotation for UX puposes
            if (e.CreatedAnnotations.Count == 1)
            {
                var annot = e.CreatedAnnotations[0];

                if (annot as TextMarkup == null && annot as FreeHand == null)
                {
                    this.DocumentViewer.ToolMode =
                        DocumentViewer.ToolModes.AnnotationEdit;
                }
            }
        }