I've been working on a text editor for a website using the radrichtextbox. I have the radrichtextboxribbonui in place and working spectacularly, as well as a radMenu, that is working well. I bound the cut, copy, and paste buttons in the radmenu to those of the radrichtextbox with the xaml code:
And that works well. I tried to do the same thing with a context menu, and non of the buttons seem to work. They simply respond as if they had no command. The code I've written for that is:
I am attaching a project that shows two ways you can use to make the context menu work - in XAML and in code-behind.
Basically, what you need to change in your code is not bind the DataContext property of the RadMenuItem, but the DataContext property of RadRichTextBox as follows:
If you have any other questions, do not hesitate to contact us again.
All the best,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items