RadRibbonBackstageItem prism Regions with prism

2 posts, 0 answers
  1. Leonid
    Leonid avatar
    4 posts
    Member since:
    Apr 2015

    Posted 25 May 2015 Link to this post

    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" />


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




  2. Kiril Vandov
    Kiril Vandov avatar
    323 posts

    Posted 26 May 2015 Link to this post

    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.

    Kiril Vandov
    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
  3. DevCraft banner
Back to Top