This is a migrated thread and some comments may be shown as answers.

Error adding latest RadRichTextBoxRibbonUI

2 Answers 67 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Richard Ellis
Top achievements
Rank 1
Richard Ellis asked on 26 Jan 2011, 03:54 PM
I added a RadRichTextBoxRibbonUI component, followed by a RadRichTextBox itself from the latest (2010 Q3) build of the Silverlight controls and found that, when I had connected the 2, most but not all of the Ribbon bar buttons were working.  But why not all?

After some digging it looks like the Bindings for the Commands are incorrect and using the old deprecated Commands form the RichTextBox directly.  It seems that these have been moved to a Commands namespace and all the new Commands are only found here.

After changing the spell checking binding from {Binding Path=ToggleSpellCheckingCommand} to {Binding Path=Commands.ToggleSpellCheckingCommand} it started to worked as expected.  You may wish to update the generation of the RichText Ribbon in a future release to fix this problem.

2 Answers, 1 is accepted

Sort by
0
Richard Ellis
Top achievements
Rank 1
answered on 26 Jan 2011, 04:23 PM
Of course it would have been easier if I had bound to the 'Commands' path in the first place.  This is what happens when I upgrade from an older version (but I do need that Tables functionality).

Anyone who has a similar problem as I had just remember to bind the DAtaCOntext of the RibbonMenu to 'Commands', as in the below:
DataContext="{Binding Path=Commands, ElementName=editor}"
0
Accepted
Boby
Telerik team
answered on 27 Jan 2011, 09:19 AM
Hi Richard Ellis,

We are glad that you were able to solve the problem yourself. The approach you have implemented is the correct one.
Don't hesitate to contact us if you have other questions.


Kind regards,
Boby
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
RichTextBox
Asked by
Richard Ellis
Top achievements
Rank 1
Answers by
Richard Ellis
Top achievements
Rank 1
Boby
Telerik team
Share this question
or