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
490
Customize QuickAccessToolbar's Context Menu
posted

Hello,

Please let me know how to customize the ContextMenu of QuickAccessToolbar (under Ribbon of UltraToolbarsManager), so that the buttons "Show Below the Ribbon" and "Minimize the Ribbon" could be removed(or hidden, atleast) from the ContextMenu.

Please note that I don't want to hide the QuickAccessToolbar. I know how to Add Tools in the context menu of QuickAccessToolbar, but how can I remove the above mentioned buttons from it?

- Nazish Kanwal

Parents
  • 5389
    Suggested Answer
    posted

    Nazish,

    In order to hide those two options, you will need to handle the UltraToolbarsManager's BeforeToolbarListDropdown event and set the ShowQuickAccessToolbarPositionMenuItem and ShowMinimizeRibbonMenuItem properties off of the EventArgs to False.  Please note that this will only work if you have the UltraToolbarsManager's Office2007UICompatibility property set to False.

            private void ultraToolbarsManager1_BeforeToolbarListDropdown(object sender, Infragistics.Win.UltraWinToolbars.BeforeToolbarListDropdownEventArgs e)
            {
                e.ShowQuickAccessToolbarPositionMenuItem = false;
                e.ShowMinimizeRibbonMenuItem = false;
            }

    ~Kim~

Reply Children