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
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
This is cool, but is there any way to just get rid of the entire block region, and not just the filter button part?
TIA
Thanks Brian.
Your code works great in the C# test project I set up. I tried to convert your code to VB to use in my project but I get a red cross through the control.
Can you give me a VB version of the code?
Thanks,
Scott Pearce