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

Problems when using the Prism.Interactivity library.

1 Answer 55 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 17 Feb 2011, 11:37 AM
I am currently trying to bind a RichTextBox to a string in my ViewModel, however I am having several problems.  I ma using the telerik XamlFormatProvider bound to a string, but the content is never displayed and when I try to type into the editor the entire application blanks (all the controls disappear).

To try and find the problem I set up a seperate Silverlight application with a single RadRichTextBox control bound to a ViewModel string and had no problems.  Eventually I found that the problem occurs when I reference the 'Microsoft.Practices.Prism.Interactivity' library.

Anyone know why this problem would occur and how I can fix this?

UPDATE:
I've managed to rewrite sections of my application so that I no longer use the Interactivity library so that it now works, but I do not yet know if I will need to use it again at some point.

1 Answer, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 22 Feb 2011, 09:37 AM
Hi Richard Ellis,
This problem is most probably caused by MEF which is used internally by RadRichTextBox to load some of its extensible parts, like UI, format-providers etc. By default, MEF walks up the entire reference tree and throws exception if some assemblies are missing. We changed this behavior so MEF will stop throwing this kind of exceptions starting from Q1 Beta 2011, expected till the end of the week.
As an immediate workaround, you should add all assemblies that Microsoft.Practices.Prism.Interactivity references - System, System.Core, System.Windows, System.Windows.Browser, System.Windows.Interactivity.

Don't hesitate to contact us if you have other questions.

Best wishes,
Boby
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
RichTextBox
Asked by
Richard Ellis
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or