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.
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.
AAAngshuman AgarwalMarch 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
AAAngshuman AgarwalMarch 19, 2013 05:48 PM UTC
Thanks for the sample code... Traversing is my issue.
RDRavuthasamy D Syncfusion Team April 4, 2013 06:37 AM UTC
Thanks for the update.Please feel free contact if you need any other information.
Please let us know if you have any queries,
JAJamesNovember 10, 2016 11:22 AM UTC
Hello, the link to the sample project is broken, can you please fix.
VIVinothini Syncfusion Team November 11, 2016 11:19 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 ?
VRVijayalakshmi Roopkumar Syncfusion Team May 1, 2018 04:30 AM UTC
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:
Please try this solution and let us know it is helpful.
Regards Vijayalakshmi V.R.
MAMarimuthuMay 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 ?
VRVijayalakshmi Roopkumar Syncfusion Team May 2, 2018 11:39 AM UTC
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.