I'm not sure I entirely understand the issue that you're facing. If I properly understand you, you are copying content from MS Word and expect to paste it in RadRichTextBox as plain text, is that correct?
Could you share which version of the WPF suite you're using precisely? I tried the scenario, but the fragments for all three clipboard handlers are properly populated when pasting. By default, their priorities enforce to use the RTF handler if the respective assembly is referenced, but I had no issues overriding this in the manner shown in my previous snippet:
sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
var documentFromClipboard = ClipboardEx.GetDocumentFromClipboard(
Bear in mind that the ClipboardEx class is simply an extension of the native Clipboard class for the purposes of RadRichTextBox. In fact, it internally calls Clipboard.GetData(format)
when trying to access plain text in the clipboard, so if the ContainsText() method returns True for you, I don't see a reason the paste to fail.
If you are able to replicate this consistently, could you please try calling the GetData() method in the scenario in which the paste is failing and send over the string so we can look into this?
Thanks for your cooperation in advance.
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.