WPF + Prism + Ribbon Control Any where nice example??

Topics: Prism v2 - WPF 3.5, Prism v2 - WPF 4, Prism v4 - WPF 4
Aug 23, 2012 at 8:36 PM

Hi Every one,

I am using WPF but i am newbie in prism,

I am using WPF Tool kit for Ribbon control, i would like to use Prism.

when ever i tried i am not able to succed, do u know any where i can get Example.

below is my requirement.

I have ribbon Control and When i click any Tab i would like to see that page into my Avalon Dock panel.

looking forward to hearing from you.




Aug 23, 2012 at 9:26 PM


As far as I know, there is no official samples regarding the use of Prism and Ribbon controls. However, in the web you can find several samples portraying this kind of scenario.

For example, in the following thread you can find a link to a blog post which portrays a WPF + Prism + Ribbon sample application:

Also, I believe you could find the sample application included in the following blog post useful. Although the post is in German, you can download the sample and analyze it to find how it's implemented (the download link is at the end of the post):

Take into account that Prism does not provide a RegionAdapter for Ribbon controls as out of the box. This means that you cannot define a Ribbon control as a region unless you implement a RegionAdapter for it. The two sample applications mentioned above also address this scenario by implementing their custom Ribbon RegionAdapters.

I hope this helps,

Damian Cherubini

Sep 12, 2012 at 8:56 PM


Thanks for reply,

i got few thing which is working, but i have one problem which stucking me to proceed.

i have few moduleA and Module B, i open Module A from Ribbon Control so Control placed inside Avalon Dock, i have button on this page i want to open Module B (page2) by clicking on this button how i can do?




Sep 13, 2012 at 5:54 PM


Based on my understanding of your scenario, you should be able to bind the button to a command, and in this command perform the required logic to display the new page (e.g. initialize the Module B if not already initialized, which could register the new view in an specific region, or if the module is already loaded you could add this view to a region of your choice by using any of the UI Composition approaches).

In case you want to use the AvalonDock as the container of your views, by defining a region in it, you should have to define a custom region adapter for this type of control, as this is not supported by Prism as out of the box. I have seen a couple of samples of how to implement this kind of adapters that could be used as a reference, for example you could check the following resources:

I hope you find this handy,

Agustin Adami