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?
9 Answers, 1 is accepted
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,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
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?
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.
See What's Next in App Development. Register for TelerikNEXT.
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.
We have prepared a sample project using Prism6 and our RadRibbonView control. Please see the attachment.
I hope this information helps.
Thanks, Kiril, works and looks great!
Is it possible to control the order of the tabs, when we are trying to load the modules using DirectoryModuleCatalog?
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.