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
890
How to hide the "Configure Buttons" menu thingy
posted

I'm using the UltraExplorerBar in outlook mode.  Is there a way I can hide the little button that appears at the bottom right?  I'm not sure what it is called - the tooltip calls it "Configure Buttons".

I've attached a screen shot of what I want to hide - it's the thing with the red circle around it.

In addition to hiding it, is it also possible to perhaps grey out the menu items that pop up when you click it?

Any info appreciated,

Scott

Parents
  • 69832
    Suggested Answer
    Offline posted

    You can hide the "quick customize button" using the IUIElementCreationFilter interface, as demonstrated by the following code sample:

    using Infragistics.Win;
    using Infragistics.Win.UltraWinExplorerBar;

    this.ultraExplorerBar1.CreationFilter = new HideQuickCustomizeButtonCreationFilter();

    #region HideQuickCustomizeButtonCreationFilter
    /// <summary>
    /// IUIElementCreationFilter implementation which disables the splitter bar
    /// for the OutlookNavigationPane style ExplorerBar.
    /// </summary>
    public class HideQuickCustomizeButtonCreationFilter : IUIElementCreationFilter
    {
        #region Constructor
        /// <summary>
        /// Creates a new instance of the class.
        /// </summary>
        public HideQuickCustomizeButtonCreationFilter(){}
        #endregion Constructor

        #region IUIElementCreationFilter implementation

        void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent)
        {
            NavigationOverflowButtonAreaUIElement buttonArea = parent as NavigationOverflowButtonAreaUIElement;
            if ( buttonArea != null )
            {
                NavigationOverflowQuickCustomizeButtonUIElement buttonElement =
                    buttonArea.GetDescendant( typeof(NavigationOverflowQuickCustomizeButtonUIElement) ) as
                    NavigationOverflowQuickCustomizeButtonUIElement;

                if ( buttonElement != null )
                    buttonArea.ChildElements.Remove( buttonElement );
            }
        }


        bool IUIElementCreationFilter.BeforeCreateChildElements(UIElement parent)
        {
            return false;
        }

        #endregion IUIElementCreationFilter implementation
    }
    #endregion HideQuickCustomizeButtonCreationFilter

Reply Children