Ribbon View in Prism.

10 posts, 0 answers
  1. Sam
    Sam  avatar
    5 posts
    Member since:
    Jul 2012

    Posted 25 Jun 2012 Link to this post

    I am trying use RibbonView in my prism project. I want to have each module inject its own Ribbon Tab . I have gotten this work following the PribbonViewPrism example project.

    I have just one problem. I want the initial Screen to display a login control. This screen should not display the Ribbon View.

    In all examples, the RibbonView is "baked into the shell". So, when I display the screen it shows the empty RibbonView.

    I tried to add the RibbonView as a Module too. I added a ContentControl that is mapped to the "RibbonRegioon" in teh shell. Then I load the ribbonView and ribbontabs into this region. RibbonView is loaded and displayes. When I try and load a RibbonTab, it  does not work because,  RibbonView is not defined as a Region in the shell and is just another view.

    How to get this to work?. Is there a way to load the RibbonView Region without displaying in the initial screen?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 28 Jun 2012 Link to this post

    Hello Sanjeev,

    I am not sure why you couldn't move the RadRibbonView in a module and use PRISM to inject it in the ShellView, but as long as you make sure that the module where it is defined is initialized, the other modules should be able to inject theirs views in the RibbonView content.

    I attached a sample solution demonstrating this approach. Also, I created a sample LoginScreen that I display before loading the ShellView just in case you need to use such an approach. Please have a look at the solution and let me know if it helps.

    All the best,
    Tina Stancheva
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Sam
    Sam  avatar
    5 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    Thanks Tina,

    This totally solved my issues. I had found a workarounf to hide and show RibbonView based on login event, but your solution is what I really needed.

    Thanks,
    Sanjeev.
  5. Leonid
    Leonid avatar
    4 posts
    Member since:
    Apr 2015

    Posted 27 Apr 2015 Link to this post

    Hello Tina.

    I updated this example to prism 5(I updated telerik references and prism 5) but it stopped to work.

    Does telerik support prism 5 for Ribbon?

     

  6. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 29 Apr 2015 Link to this post

    Hello Leonid,

    The RadRibbonView supports Prism5 and we are not aware of any issues on the matter. I have tested the application provided by Tina with our latest binaries and using Prism5 and it works as expected. Please note that I have noticed a few differences between Prism4 and Prism5:
    - instead of using the old one "Microsoft.Practices.Prism.dll" the core logic is now in a new binary "Microsoft.Practices.Prism.Composition".
    - you need to change the schema for the regions from " xmlns:regions="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"" to "xmlns:regions="http://www.codeplex.com/CompositeWPF""  in order to match the new namespace.

    These were the two steps that I needed to modify in order to run the project.

    I hope this information helps. Please let us know if you need further assistance.

    Kind regards,
    Kiril Vandov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  7. David
    David avatar
    2 posts
    Member since:
    Feb 2016

    Posted 18 Feb Link to this post

    Hi Kiril and Tina,

    Do you, by chance, have an updated sample project which uses the latest RadRibbonView release with Prism 6 (which has been relocated to GitHub as an open source project)? I am evaluating Telerik WPF controls for use in a Prism project.

    Thanks,

    Dave

     

  8. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 23 Feb Link to this post

    Hello David,

    We have prepared a sample project using Prism6 and our RadRibbonView control. Please see the attachment.

    I hope this information helps.

    Kind 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
  9. David
    David avatar
    2 posts
    Member since:
    Feb 2016

    Posted 23 Feb in reply to Kiril Vandov Link to this post

    Thanks, Kiril, works and looks great!

    Dave

  10. Alex
    Alex avatar
    6 posts
    Member since:
    Jul 2015

    Posted 04 May Link to this post

    Hi David,

    Is it possible to control the order of the tabs, when we are trying to load the modules using DirectoryModuleCatalog?

    Regards,

    Alex

  11. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 09 May Link to this post

    Hello Alex,

    The RadRibbonView support all the features that are available in the PRISM framework and if there is a way to change the order of the module loading it will work in the RadRibbonView tool. For instance there is module dependency and ViewSortHint. If this does not work you and you need to use sorting using DirectoryModuleCatalog I have found that there is limitation in the framework and you need to do it on your own there are some workarounds on the net.

    I hope this information helps.

    Kind regards,
    Kiril Vandov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready