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

Richtextbox

1 Answer 72 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pratheep p
Top achievements
Rank 1
pratheep p asked on 27 Jul 2012, 04:43 PM
I get the below error when i run the rich text editor sample at  InitializeComponent();
Set property 'Telerik.Windows.Controls.RadRibbonView.Backstage' threw an exception

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 31 Jul 2012, 12:07 PM
Hello Pratheep,

The exception that is thrown is usually a sign that there are conflicting assembly references in the project.

As noted in this article RadRichTextBoxRibbonUI has a dependency on Telerik.Windows.Controls.RibbonView - the new implementation of the ribbon control. That is why the following two references have to be added to the project:

  • Telerik.Windows.Controls.RibbonView;
  • Telerik.Windows.Controls.RichTextBoxUI.

At the same time, there are two references that must not be added, as the assemblies contain classes with the same names and there is no way to determine which classes (from which assembly) should be used:

  • Telerik.Windows.Controls.RibbonBar;
  • Telerik.Windows.Controls.RadRichTextBoxRibbonUI.

Please, make sure to have references only to the first two assemblies. After removing the unnecessary references, try to rebuild the project. Sometimes it is required to manually delete the bin and obj folders.

You can find the full list of assemblies that RadRichTextBox and its UI use here.

I hope this helps.


Greetings,
Martin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
pratheep p
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or