How to override the ApplicationMenu of Ribbon Control

Feb 16, 2009 at 9:31 AM
I am tring to override the ApplicationMenu of Ribbon control. That is, I don't need the popup of ApplicationMenu which comes with Ribbon control.

I have designed a popup with my custom UserControl. Presently I am using the PreviewMouseLeftButtonDown event of RibbonApplicationMenu to popup my UserControl. Unfortunately, the Ribbon's ApplicationMenu also popping out. It would be great if I could get the toggle trigger of the ApplicationButton of the Ribbon control.

Venkatesh Mookkan.
Feb 16, 2009 at 9:52 AM
I wouldn't be surprised if someone will mention the Office UI license (I haven't even looked at it myself since I am not using the Ribbon control), but are you setting e.Handled=true in your event handler?
Feb 16, 2009 at 10:08 AM
Edited Feb 16, 2009 at 10:08 AM
Thank you the reply.

Yes Mikj, Sounds like someone will do. I just went thru other discussions where most of it has mentioned the license part. If this going to violate the UI License, this control is totally waste for my application development which is not going to meet the basic requirement of my application.

And I am not setting any e.Handled = true;
Feb 16, 2009 at 12:08 PM
If you are not setting e.Handled appropriately, how should the control know that you have handled the event in question? Try adding that assignment after you display your custom UserControl in PreviewMouseLeftButtonDown and see if that resolves the technical issue you are seeing. (I won't comment further on the licensing issue - there are others here who are in a much better position than myself to do so.)
Feb 16, 2009 at 12:22 PM
I tried it once you posted the previous post. And its resolved. Sorry for not mentioning immediately.

I have to work with my Team Leader regarding this License issue.

Thank you very much.