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

Prism Region within RadRibbonView.Backstage

2 Answers 176 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Trystan
Top achievements
Rank 1
Trystan asked on 25 Apr 2012, 03:58 PM
Hi,

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.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 30 Apr 2012, 11:02 AM
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 >>

0
Trystan
Top achievements
Rank 1
answered on 01 May 2012, 01:49 PM
OK thanks for your help.
Tags
RibbonView and RibbonWindow
Asked by
Trystan
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Trystan
Top achievements
Rank 1
Share this question
or