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

RadRibbonBackstageItem prism Regions with prism

1 Answer 98 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Leonid
Top achievements
Rank 1
Leonid asked on 25 May 2015, 09:47 AM

Hello.
Is it possible to use RadRibbonBackstageItem  with prism?
I try to use navigation but view doesn't appears.

 <telerik:RadRibbonBackstageItem Header="Info" IsDefault="True" Command="{Binding NewCommand}" CommandParameter="Info" >
               <ContentControl regions:RegionManager.RegionName="RadRibbonViewRegion" />
</telerik:RadRibbonBackstageItem>

...

 var regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
regionManager.RequestNavigate("RadRibbonViewRegion", new Uri("New", UriKind.Relative));

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 26 May 2015, 12:58 PM
Hello Leonid,

In Prism there are a few predefined region adapters that are responsible for the logic such as RequestNavigate from the Prism services. For custom controls there is no out of the box region adapter and you need to create a custom one, you can find more information in this article.

However in the RibbonView case due to the complexity of the control and the prism mechanism of registering the Modules to the catalog, this functionality is not supported. In order for Prism to detect your regions and be able to navigate to them using the NavigationService you need to add the Modules to the catalog. When you register a module it is injected directly to the Items collection in case of the RibbonView( it varies based on the control). As the Backstage is property of the RadRibbonView and it is not supposed to be placed inside the ItemsCollection (it is for RadRibbonTabs) you can't register the Backstage to use it in the desired way.

I hope this information helps.


Regards,
Kiril Vandov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
RibbonView and RibbonWindow
Asked by
Leonid
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or