Problems when using the Prism.Interactivity library.

2 posts, 1 answers
  1. Richard Ellis
    Richard Ellis avatar
    26 posts
    Member since:
    Mar 2010

    Posted 17 Feb 2011 Link to this post

    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.
  2. Answer
    Boby
    Admin
    Boby avatar
    763 posts

    Posted 22 Feb 2011 Link to this post

    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!
Back to Top