We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to close Ribbon backstage ?

Thread ID:

Created:

Updated:

Platform:

Replies:

107821 Mar 19,2013 09:32 AM UTC May 2,2018 11:39 AM UTC WPF 11
loading
Tags: Ribbon
Angshuman Agarwal
Asked On March 19, 2013 09:32 AM UTC

Hi,
I am using the latest Syncfusion WPF control suite. I have a backstage with multiple tab items. Now, when I am inside a particular tab item of the backstage, how do I close the backstageprogrammatically ? Assume that the Tabitem in the backstage has a button clicking which I want to close the backstage view.

I could not find any good document which talks about WPF backstage features in details.


Ravuthasamy D [Syncfusion]
Replied On March 19, 2013 09:50 AM UTC

Hi Agarwal,

We have created a sample based on your requirement "Close Ribbon BackStage”.In this sample, we have called the HideBackStage method in button click.

Please let us know if you have any queries,

Regards,
Ravuthasamy D


107821_RibbonBackStage_a795e32e.zip

Angshuman Agarwal
Replied On March 19, 2013 10:45 AM UTC

Hi,
This won't help. I want to close / hide the Ribbon from a Ribbon Backstage Item. In your sample, can you please modify the code to close from the Backstage Item1 please ? As I said, I have a backstage item, in which I have a button. 

Angshuman Agarwal
Replied On March 19, 2013 10:48 AM UTC

Basically, for me its not the same code behind. My backstage item is in a different PRISM module. I want to traverse the "myRibbon" object from the backstage

Angshuman Agarwal
Replied On March 19, 2013 05:48 PM UTC

Thanks for the sample code... Traversing is my issue. 

Ravuthasamy D [Syncfusion]
Replied On April 4, 2013 06:37 AM UTC

Hi Agarwal,

Thanks for the update.Please feel free contact if you need any other information.

Please let us know if you have any queries,

Regards,
Ravuthasamy D

James
Replied On November 10, 2016 11:22 AM UTC

Hello, the link to the sample project is broken, can you please fix.

Thanks

Vinothini [Syncfusion]
Replied On November 11, 2016 11:19 AM UTC

Hi James, 
 
Please find the sample in the below link. 
 
 
Regards, 
Vinothini.R 


Marimuthu
Replied On April 30, 2018 09:43 AM UTC

Is there any way to close the BackStage from ViewModel. Im following MVVM pattern once the button is clicked i want to close the backstage. Is it possible to do it without breaking MVVM pattern ?

Vijayalakshmi Roopkumar [Syncfusion]
Replied On May 1, 2018 04:30 AM UTC

Hi Marimuthu

Thank you for contacting Syncfusion support.

Yes it is possible to close the Backstage of Ribbon in mvvm pattern. In our sample, we have binded the command for the Button and pass the Ribbon instance through CommandParamater property. The same has been explained in our sample. Please download the sampe from following location:

Samplehttp://www.syncfusion.com/downloads/support/forum/107821/ze/WpfRibbon_MVVM-1825455489 

Please try this solution and let us know it is helpful.

Regards
Vijayalakshmi V.R. 


Marimuthu
Replied On May 1, 2018 03:42 PM UTC

I have looked at your sample. It works.

Passing Ribbon instance from the command parameter is the only way ? I dont want to refer Ribbon in my viewmodel.
How can i do that ?

Vijayalakshmi Roopkumar [Syncfusion]
Replied On May 2, 2018 11:39 AM UTC

Hi Marimuthu

Thank you for the update.

To close the Ribbon Backstage, the HideBackstage method only be used and we have not maintained any property for it. For this reason, we ought to fetch the ribbon instance and call the HideBackstage method.

Regards
Vijayalakshmi V.R.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;