RadRichTextbox with RadRichTextBoxRibbonUI in Prism

2 posts, 0 answers
  1. Perlom
    Perlom avatar
    5 posts
    Member since:
    Nov 2012

    Posted 08 Jan 2013 Link to this post


    We are on the design stage for a WPF Prism application, and we want to provide an editor functionality similar to MS Word in one of our modules. We have a toolbar region in the top of the page that should load the module containing the RadRichTextBoxRibbonUI, and a content region in the middle of the screen that should load the module containing the RadRichTextbox for editing. So the Rich Textbox and its Ribbon are in 2 separate module for loose coupling. In the WPF demo examples, the commands in Ribbon are bound the RichTextbox in XAML (i.e. DataContext and Commands). Is there any suggestion how can we implement our design? Can we pass a reference of the RichTextbox and do the necessary binding in the code at load time of the ribbon?

    Any hints would be appreciated!

  2. Boby
    Boby avatar
    636 posts

    Posted 11 Jan 2013 Link to this post

    Hello Perlom,
    There shouldn't be any problems to set the data context of the ribbon at a later time (e.g. on ribbon load). Setting the RichTextBoxCommands object from RadRichTextBox.Commands property as RadRichTextBoxRibbonUI.DataContext should do the work.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top