Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > How to change RibbonView at runtime.

Not answered How to change RibbonView at runtime.

Feed from this thread
  • Mikkel avatar

    Posted on Sep 27, 2011 (permalink)

    Hi there,

    Is there any way to reload a RibbonView or its Items collection at runtime, if say clicking a button would require a different RibbonView layout - just like in MS Outlook 2010?

    If so, what would be the best way to implement this? Maybe it would be an advantage to be able to view and change layout using the VS2010 Designer?

    I've been banging my head against the wall on this, because the RadRibbonView has some issues with updating its layout at runtime... I tried setting the RadRibbonView to another RadRibbonView like:

    myRibbon = newRibbon;

    I also tried:

    myRibbon.Items.Clear()
    myRibbon.ItemsSource = newRibbon.Items;

    None of which seemed to work...

    Thanks in advance.

    Reply

  • Mikkel avatar

    Posted on Sep 27, 2011 (permalink)

    Actually ended up with an acceptable solution:

    Remove the RadRibbonView and make a Frame with JournalOwnership="OwnsJournal", and then set the frame Source to point to your .xaml controls/views containing the RadRibbonView you need.

    Still would like to hear your comments though, and if this is the best solution for the job.

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Sep 30, 2011 (permalink)

    Hi Mikkel,

     As I managed to understand, you have tried to change the ItemsSource of the RadRibbonView dynamically. Could you please check out the project attached where this is realized and let us know if this is what you need? Thank you in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > How to change RibbonView at runtime.