简体   繁体   中英

WPF Ribbon Control - Application Menu event?

I'm looking for a suitable event to trigger on clicking on the Application Menu in the Ribbon. Ideally to capture it and suppress the application menu from appearing and call something else.

To suppress, you should use override. That would be overriding the parent's method of performing any action, and you can call something else.

MSDN documentation for override .

Otherwise, you can handle that Click event. This way, the code inside your Click event handler would execute and the default behaviour will be skipped. This is the MSDN documentation for the click handler.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM