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. Image for the cookie policy date

Exit from backstage and get back to main

Hello guys,

I'm using the ribbon component in my current project. For now everything is working fine. I've only got one problem: 

If you look at the (maybe Outlook-)Office-Ribbon, you can see, that you get back to the main view when clicking a command button (e.g. Options in Outlook). Is there any property in the Syncfusion Ribbon-Component wich provides me the same behavior?


Thanks,
Marco

3 Replies

VI Vinothini Syncfusion Team July 4, 2016 07:35 AM UTC

Hi Marco, 

Thank you for contacting Syncfusion support. 

Your requirement for exiting from the Backstage can be done by using the HideBackStage method as like the below code example. 

Code example : 

  
 
// To Hide the BackStage 
 
ribbon1.HideBackStage(); 
 
 

 We have prepared a sample for your reference which is available in the following location . 


Please let us know if it satisfies your requirement. 

Regards, 
Vinothini 



MB Marco Batzinger July 4, 2016 08:43 AM UTC

Hi Vinothini,

I've already fount the mehtod "HideBackStage". But I'm working with the MVVM-Pattern, so I want to avoid the code behind. 

For now I've written my own BackStageCommandButton wich derives from your controls added a Property called "HideBackStageOnClick".
So if I want the Backstage to get hide on click, I only need to set the Property to true:

[code]
<myControls:MyBackStageCommandButton Header="Click to get back" HideBackStageOnClick="true" Command="{Binding MyCommand]/>

[/code]

My control is just checking on every click if the property "HideBackStageOnClick" is set to true. If so, it finds the Ribbon as its parent and executes the HideBackStage method.

It would be an advantage if you could improve it on your side so I don't need to create my own control but just use the given one.


Tanks,

Marco




VI Vinothini Syncfusion Team July 5, 2016 11:31 AM UTC

Hi Marco, 
Thank you for your update. 
We have considered your requirement for hiding BackStage through property as a feature and logged feature report regarding this. A support incident to track the status of this feature has been created under your account. Please log on to our support website to check for further updates 
Please let me know if you have any questions. 
Regards, 
Vinothini 


Loader.
Up arrow icon