Copy and Paste doesn't include AnnotationMarkers?

2 posts, 1 answers
  1. Anselmo
    Anselmo  avatar
    5 posts
    Member since:
    Aug 2012

    Posted 30 Aug 2012 Link to this post

    Hi Iva,

    I tried to highlight/select a section which has an annotationmarker (I've created a custom one named SectionAnnotationStart and SectionAnnotationEnd) and clicked Copy. And I then Paste it to the end of the document, but it doesnt include the annotations as part of the pasted section.

    I've implemented your code suggestion from this thread  in my SectionAnnotationStart class, but still cant get the AnnotationMarkers from "ClipboardEx.GetDocument();". Am I missing something here?

    BTW - this is how I'm intercepting the PasteCommand under CommandExecuting event

    void xRadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
                if (e.Command is PasteCommand)
                    DocumentFragment fragment = ClipboardEx.GetDocument();
                    if (fragment != null)
                        (sender as RadRichTextBox).InsertFragment(fragment);

                        e.Cancel = true;


  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 03 Sep 2012 Link to this post

    Hello Selmo,

    Please find the answer to your question in this forum thread. It is the same for both Silverlight and WPF.

    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top