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

Ribbon View in Prism.

9 Answers 151 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 25 Jun 2012, 02:45 PM
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?

9 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 28 Jun 2012, 01:27 PM
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 >>

0
Sam
Top achievements
Rank 1
answered on 10 Jul 2012, 07:20 PM
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.
0
Leonid
Top achievements
Rank 1
answered on 27 Apr 2015, 10:16 AM

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?

 

0
Kiril Vandov
Telerik team
answered on 29 Apr 2015, 10:34 AM
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.

 
0
David
Top achievements
Rank 1
answered on 18 Feb 2016, 09:38 PM

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

 

0
Kiril Vandov
Telerik team
answered on 23 Feb 2016, 03:59 PM
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
0
David
Top achievements
Rank 1
answered on 23 Feb 2016, 08:07 PM

Thanks, Kiril, works and looks great!

Dave

0
Alex
Top achievements
Rank 1
answered on 04 May 2016, 08:41 PM

Hi David,

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

Regards,

Alex

0
Kiril Vandov
Telerik team
answered on 09 May 2016, 07:45 AM
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.
Tags
RibbonView and RibbonWindow
Asked by
Sam
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Sam
Top achievements
Rank 1
Leonid
Top achievements
Rank 1
Kiril Vandov
Telerik team
David
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or