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
220
ButtonTool -> Specific style for MenuItem only.
posted

I'm trying to hide the context menu item associated with the ToolBar.

 

When I run the code containing

 

tool.SharedProps.Visible = false;

 

I hides not only the Menu Item but also the button in the ToolBar (I don't want this).

 

How can I achieve only hiden items on the Context Menu.

Parents
  • 44743
    posted

    I'm not sure I fully understand your question. I think you are trying to hide the context menu which appears when you right-click on a toolbar. If this is the case, you can handle the UltraToolbarsManager.BeforeToolbarListDropdown event and set Cancel to True on the event args.

Reply Children