Hello,
i use the default context menue in my explorer bar. When I click on remove in this menue, the integrated confirmation message box is shown. How can i disable this box and use my own styled message box?
Many thanks.
Sven
I checked the source and it looks like we show that in response to the Click event of the default menu item, and there is no publicly exposed way to intercept that. This means that you would have to replace the menu item with a custom one; you can use the ContextMenuInitializing event (or NavigationContextMenuInitializing if the style is OutlookNavigationBar.
Note that the event arguments for those events give you a reference to the ContextMenu, but unfortunately there is no easy way to identify a particular menu item, except by comparing the text, which can be different in internationalized applications. For this reason you might want to consider replacing all menu items.
Hi,
Let me know if you need any assistance.
Regards,
Stefaniya