Disable "backstageCloseButton" when no documents are open

Ribbon for WPF Forum

Posted 4 years ago by Josh Luth - Software Developer, Esha Research
Version: 15.1.0621
Avatar

I would like to disable the backstage close button (circle button with arrow in the upper left of backstage) when there are no documents opened. In other words, I would like the backstage to be the only thing visible until a document is opened.

I can't seem to find the right magic to get to that button to set "IsEnabled" to false. Is there a way to do this?

Comments (1)

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Josh,

The button uses the RibbonCommands.ToggleApplicationMenu command, and there is a default CommandBinding on RibbonWindow.  I wonder if you persist the default CommandBinding, the remove it from the RibbonWindow.CommandBindings collection, if that would disable it.  Then restore it back again later when appropriate.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.