According to this MSDN page, if I were using Window, then I could disable the control box in the top left hand corner by setting it to false. Like this:
The ControlBox has Maximize, Minimize, Restore and Close options
this.ControlBox = false;
But since I'm using RibbonWindow instead of Window, how would I disable the control box in this situation?
is very related, but I'm looking to disable the SystemMenu all the time, not just to prevent the Alt+Space. This is because (I think) the action listener for the SystemMenu in the top left hand corner blocks a clickable UI element in my XAML.
I should note that this is not a problem with Windows Server 2003, but when the application is opened in Windows 7, the SystemMenu/ControlBox interferes with the UI element in the top left corner.
Additionally, I've found that interfering with the system menu usually results in the buttons in the top right hand corner of the application being deactivated, but I don't want that to happen.
Thanks for the link Eammonn. I Think what that person was trying to do is disable the [X] button in the top right hand corner, not the menu in the top left hand corner, but I could be wrong. The reason I don't think it'll work is that they're using
and I'm using
. Does this make a difference?