Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
XamRibbonWindow - Double clicking orb (app menu) closes app?
posted

When the application menu (the orb) is double clicked with the XamRibbonWindow the application closes, is there a way to stop this?

Parents
  • 54937
    Verified Answer
    Offline posted

    The act of double clicking the orb is analogous to double clicking the control box in a regular window (in the xamRibbonWindow and in MS Office). In both cases, the window is closed. If you really want to prevent this behavior then you will have to intercept the RibbonWindowCommands.CloseCommand (e.g. by adding a handler for the CommandManager.PreviewCanExecute event and when the e.Command is RibbonWindowCommands.CloseCommand set CanExecute to false and Handled to true).

     

Reply Children
No Data