Prism Region within RadRibbonView.Backstage

3 posts, 1 answers
  1. Trystan
    Trystan avatar
    3 posts
    Member since:
    Jan 2012

    Posted 25 Apr 2012 Link to this post


    I want to add RadRibbonBackstageItems to the backstage using a mixture of prism regions and xaml.  The problem is, I want the region to be between some of the backstage items added in xaml.  I can set a region name on the RadRibbonBackstage and add items to it using the region manager, but the items always appear at the end after the items specified in xaml.

    I tried adding an items control within the RadRibbonBackstage to act as  a place holder (and gave this a region name) but it looks like a backstage item itself when it renders, and its content renders on the right hand backstage panel (where the item content should be).

    I guess I can add all of the RadRibbonBackstageItems via prism and order them using the view sort hint attribute, but it would be nice if I could use a mixture of xaml and prism.  I managed to do this on the application menu using an items control as a placeholder but it doesn't work on the backstage.

  2. Answer
    Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 30 Apr 2012 Link to this post

    Hi Trystan,

    You can implement your scenario by introducing a custom RegionAdapter for the RadRibbonBackstage. It will allow you to insert the PRISM modules as BackstageItems in custom positions in the Backstage control based on your requirements.

    I attached a sample solution where I introduces a Position property in the BackstageItemModule so that I can use it to add its BackstageItem view in a predefined position in the BackstageMenu. I hope this will help you get started on your task.

    Kind regards,
    Tina Stancheva
    the Telerik team

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

  3. Trystan
    Trystan avatar
    3 posts
    Member since:
    Jan 2012

    Posted 01 May 2012 Link to this post

    OK thanks for your help.
Back to Top