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