Version

ToolbarEventIds Enumeration

Value that uniquely identifies each UltraToolbarsManager event.
Syntax
'Declaration
 
Public Enum ToolbarEventIds 
   Inherits System.Enum
public enum ToolbarEventIds : System.Enum 
Members
MemberDescription
AfterApplicationMenu2010ClosedEvent ID that identifies the UltraToolbarsManager.AfterApplicationMenu2010Closed event.
AfterApplicationMenu2010DisplayedEvent ID that identifies the UltraToolbarsManager.AfterApplicationMenu2010Displayed event.
AfterApplicationMenuCloseUpEvent ID that identifies the UltraToolbarsManager.AfterApplicationMenuCloseUp event.
AfterApplicationMenuDropDownEvent ID that identifies the UltraToolbarsManager.AfterApplicationMenuDropDown event.
AfterAutoHideRibbonCloseUpEvent ID that identifies the UltraToolbarsManager.AfterAutoHideRibbonCloseUp event.
AfterAutoHideRibbonDropDownEvent ID that identifies the UltraToolbarsManager.AfterAutoHideRibbonDropDown event.
AfterComponentResetEvent ID that identifies the UltraToolbarsManager.AfterComponentReset event.
AfterCustomizeDialogClosedEvent ID that identifies the UltraToolbarsManager.AfterCustomizeDialogClosed event.
AfterMiniToolbarHiddenEvent ID that identifies the UltraToolbarsManager.AfterMiniToolbarHidden event.
AfterMiniToolbarShownEvent ID that identifies the UltraToolbarsManager.AfterMiniToolbarShown event.
AfterNavigationEvent ID that identifies the UltraToolbarsManager.AfterNavigation event.
AfterRibbonCustomizationDialogClosedEvent ID that identifies the UltraToolbarsManager.AfterRibbonCustomizationDialogClosed event.
AfterRibbonGroupCloseUpEvent ID that identifies the UltraToolbarsManager.AfterRibbonGroupCloseUp event.
AfterRibbonGroupDropDownEvent ID that identifies the UltraToolbarsManager.AfterRibbonGroupDropDown event.
AfterRibbonTabCloseUpEvent ID that identifies the UltraToolbarsManager.AfterRibbonTabCloseUp event.
AfterRibbonTabDropDownEvent ID that identifies the UltraToolbarsManager.AfterRibbonTabDropDown event.
AfterRibbonTabSelectedEvent ID that identifies the UltraToolbarsManager.AfterRibbonTabSelected event.
AfterTaskPaneToolSelectedEvent ID that identifies the UltraToolbarsManager.AfterTaskPaneToolSelected event.
AfterToolActivateEvent ID that identifies the UltraToolbarsManager.AfterToolActivate event.
AfterToolbarResetEvent ID that identifies the UltraToolbarsManager.AfterToolbarReset event.
AfterToolCloseupEvent ID that identifies the UltraToolbarsManager.AfterToolCloseup event.
AfterToolDeactivateEvent ID that identifies the UltraToolbarsManager.AfterToolDeactivate event.
AfterToolDragEndEvent ID that identifies the UltraToolbarsManager.AfterToolDragEnd event.
AfterToolDropdownEvent ID that identifies the UltraToolbarsManager.AfterToolDropdown event.
AfterToolEnterEditModeEvent ID that identifies the UltraToolbarsManager.AfterToolEnterEditMode event.
AfterToolExitEditModeEvent ID that identifies the UltraToolbarsManager.AfterToolExitEditMode event.
BeforeApplicationMenu2010ClosedEvent ID that identifies the UltraToolbarsManager.BeforeApplicationMenu2010Closed event.
BeforeApplicationMenu2010DisplayedEvent ID that identifies the UltraToolbarsManager.BeforeApplicationMenu2010Displayed event.
BeforeApplicationMenuDropDownEvent ID that identifies the UltraToolbarsManager.BeforeApplicationMenuDropDown event.
BeforeAutoHideRibbonDropDownEvent ID that identifies the UltraToolbarsManager.BeforeAutoHideRibbonDropDown event.
BeforeComponentResetEvent ID that identifies the UltraToolbarsManager.BeforeComponentReset event.
BeforeDisplayCustomizeDialogEvent ID that identifies the UltraToolbarsManager.BeforeDisplayCustomizeDialog event.
BeforeDisplayMoreItemsDialogEvent ID that identifies the UltraToolbarsManager.BeforeDisplayMoreItemsDialog event.
BeforeMiniToolbarShownEvent ID that identifies the UltraToolbarsManager.BeforeMiniToolbarShown event.
BeforeNavigationEvent ID that identifies the UltraToolbarsManager.BeforeNavigation event.
BeforeRibbonCustomizationDialogDisplayedEvent ID that identifies the UltraToolbarsManager.BeforeRibbonCustomizationDialogDisplayed event.
BeforeRibbonGroupDropDownEvent ID that identifies the UltraToolbarsManager.BeforeRibbonGroupDropDown event.
BeforeRibbonTabDropDownEvent ID that identifies the UltraToolbarsManager.BeforeRibbonTabDropDown event.
BeforeRibbonTabSelectedEvent ID that identifies the UltraToolbarsManager.BeforeRibbonTabSelected event.
BeforeShortcutKeyProcessedEvent ID that identifies the UltraToolbarsManager.BeforeShortcutKeyProcessed event.
BeforeTaskPaneToolSelectedEvent ID that identifies the UltraToolbarsManager.BeforeTaskPaneToolSelected event.
BeforeToolActivateEvent ID that identifies the UltraToolbarsManager.BeforeToolActivate event.
BeforeToolbarListDropdownEvent ID that identifies the UltraToolbarsManager.BeforeToolbarListDropdown event.
BeforeToolbarResetEvent ID that identifies the UltraToolbarsManager.BeforeToolbarReset event.
BeforeToolDragBeginEvent ID that identifies the UltraToolbarsManager.BeforeToolDragBegin event.
BeforeToolDropdownEvent ID that identifies the UltraToolbarsManager.BeforeToolDropdown event.
BeforeToolEnterEditModeEvent ID that identifies the UltraToolbarsManager.BeforeToolEnterEditMode event.
BeforeToolExitEditModeEvent ID that identifies the UltraToolbarsManager.BeforeToolExitEditMode event.
GalleryToolActiveItemChangeEvent ID that identifies the PopupGalleryTool.GalleryToolActiveItemChange event.
GalleryToolFilterChangeEvent ID that identifies the PopupGalleryTool.GalleryToolFilterChange event.
GalleryToolItemClickEvent ID that identifies the PopupGalleryTool.GalleryToolItemClick event.
GestureCompletedThe GestureCompleted event.
GestureQueryStatusThe GestureQueryStatus event.
GestureStartingThe GestureStarting event.
LoadHelperCompleteEvent ID that identifies the UltraToolbarsManager.LoadHelperComplete event.
MouseEnterElementEvent ID that identifies the Infragistics.Win.UltraComponentControlManagerBase.MouseEnterElement event.
MouseLeaveElementEvent ID that identifies the Infragistics.Win.UltraComponentControlManagerBase.MouseLeaveElement event.
PanGestureThe PanGesture event.
PressAndHoldGestureThe PressAndHoldGesture event.
PressAndTapGestureThe PressAndTapGesture event.
QuickAccessToolbarModifiedEvent ID that identifies the UltraToolbarsManager.QuickAccessToolbarModified event.
RestoredEvent ID that identifies the UltraToolbarsManager.Restored event.
RotateGestureThe RotateGesture event.
TaskPaneToolResizeEvent ID that identifies the UltraToolbarsManager.TaskPaneToolResize event.
TearawayToolbarCreatedEvent ID that identifies the UltraToolbarsManager.TearawayToolbarCreated event.
ToolbarModifiedEvent ID that identifies the UltraToolbarsManager.ToolbarModified event.
ToolClickEvent ID that identifies the UltraToolbarsManager.ToolClick event.
ToolDoubleClickEvent ID that identifies the UltraToolbarsManager.ToolDoubleClick event.
ToolEditErrorEvent ID that identifies the UltraToolbarsManager.ToolEditError event.
ToolKeyDownEvent ID that identifies the UltraToolbarsManager.ToolKeyDown event.
ToolKeyPressEvent ID that identifies the UltraToolbarsManager.ToolKeyPress event.
ToolKeyUpEvent ID that identifies the UltraToolbarsManager.ToolKeyUp event.
ToolValueChangedEvent ID that identifies the UltraToolbarsManager.ToolValueChanged event.
TwoFingerTapGestureThe TwoFingerTapGesture event.
ZoomGestureThe ZoomGesture event.
Example
The following sample code illustrates how to use the UltraToolbarManager's EventManager.

Imports Infragistics.Win.UltraWinToolbars

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

    ' Get the toolbar manager's event manager.
    ' The event manager is used to temporarily disable events
    ' to prevent them from being raised. This can be very
    ' convenient in a situation where one or more properties
    ' are being set in code and the events they would normally 
    ' raise would cause unnecessary or counter-productive
    ' code to be executed.
    '
    ' Note: All events are enabled by default.
    Dim eventManager As ToolbarsEventManager

    eventManager = Me.ultraToolbarsManager1.EventManager

    ' Disable the ToolClick event
    eventManager.SetEnabled(ToolbarEventIds.ToolClick, False)

    ' Toggle the 'Checked' property of a state button tool.
    ' Note: This would normally cause the ToolClick event to 
    ' be raised. However, since the above code disabled the event
    ' it won't be raised.
    Dim tool As StateButtonTool

    tool = Me.ultraToolbarsManager1.Tools("StateButtonTool1")
    tool.Checked = Not tool.Checked

    ' Re-enable the ToolClick event
    eventManager.SetEnabled(ToolbarEventIds.ToolClick, True)

    ' The 'AllEventsEnabled' property lets you enable/disable
    ' all events will a single line of code. If any event is 
    ' disabled the 'AllEventsEnabled' property returns false.
    If Not eventManager.AllEventsEnabled Then
        eventManager.AllEventsEnabled = True
    End If

    ' The event manager also exposes an 'IsEnabled' method
    ' to see if an event is enabled or disbled.
    If Not eventManager.IsEnabled(ToolbarEventIds.ToolClick) Then
        eventManager.SetEnabled(ToolbarEventIds.ToolClick, True)
    End If

    ' The status bar event manager also exposes overloaded 
    ' 'IsEnabled' and 'SetEnabled' methods that take an  
    ' event group so that, for example all 'Before' or all
    ' 'After' events can be enabled/disabled. If any event
    ' in the group is disabled the 'IsEnabled' method returns
    ' false.
    If Not eventManager.IsEnabled(EventGroups.BeforeEvents) Then
        eventManager.SetEnabled(EventGroups.BeforeEvents, True)
    End If

    eventManager.SetEnabled(EventGroups.AfterEvents, True)

    ' The 'InProgress' method will return true if the 
    ' specified event is currently being raised. This
    ' is often helpful in methods that can be called
    ' from various points in an application to determine
    ' what is triggering the call.
    If eventManager.InProgress(ToolbarEventIds.ToolClick) Then
        ' ... 
    End If

End Sub
using System.Diagnostics;
using Infragistics.Win.UltraWinToolbars;

private void button1_Click(object sender, System.EventArgs e)
{

	// Get the toolbar manager's event manager.
	// The event manager is used to temporarily disable events
	// to prevent them from being raised. This can be very
	// convenient in a situation where one or more properties
	// are being set in code and the events they would normally 
	// raise would cause unnecessary or counter-productive
	// code to be executed.
	//
	// Note: All events are enabled by default.
	ToolbarsEventManager eventManager = this.ultraToolbarsManager1.EventManager;

	// Disable the ToolClick event
	eventManager.SetEnabled( ToolbarEventIds.ToolClick, false );

	// Toggle the 'Checked' property of a state button tool.
	// Note: This would normally cause the ToolClick event to 
	// be raised. However, since the above code disabled the event
	// it won't be raised.
	StateButtonTool tool;

	tool = this.ultraToolbarsManager1.Tools["StateButtonTool1"] as StateButtonTool;
	tool.Checked = !tool.Checked;

	// Re-enable the ToolClick event
	eventManager.SetEnabled( ToolbarEventIds.ToolClick, true );

	// The 'AllEventsEnabled' property lets you enable/disable
	// all events will a single line of code. If any event is 
	// disabled the 'AllEventsEnabled' property returns false.
	if ( !eventManager.AllEventsEnabled )
		eventManager.AllEventsEnabled = true;

	// The event manager also exposes an 'IsEnabled' method
	// to see if an event is enabled or disbled.
	if ( !eventManager.IsEnabled(ToolbarEventIds.ToolClick ) )
		eventManager.SetEnabled(ToolbarEventIds.ToolClick, true );

	// The status bar event manager also exposes overloaded 
	// 'IsEnabled' and 'SetEnabled' methods that take an  
	// event group so that, for example all 'Before' or all
	// 'After' events can be enabled/disabled. If any event
	// in the group is disabled the 'IsEnabled' method returns
	// false.
	if ( !eventManager.IsEnabled(EventGroups.BeforeEvents ) )
		eventManager.SetEnabled(EventGroups.BeforeEvents, true );

	eventManager.SetEnabled(EventGroups.AfterEvents, true );

	// The 'InProgress' method will return true if the 
	// specified event is currently being raised. This
	// is often helpful in methods that can be called
	// from various points in an application to determine
	// what is triggering the call.
	if ( eventManager.InProgress( ToolbarEventIds.ToolClick ) )
	{
		// ... 
	}
	
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also