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
425
Replace the item remove confirm MessageBox
posted

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

Parents
  • 69832
    Suggested Answer
    Offline posted

    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.

Reply Children
No Data