Version

QuickCustomizeMenuOpening Event

Occurs when the QuickCustomizeMenu is about to be displayed to the end user.
Syntax
'Declaration
 
Public Event QuickCustomizeMenuOpening As EventHandler(Of ToolOpeningEventArgs)
public event EventHandler<ToolOpeningEventArgs> QuickCustomizeMenuOpening
Event Data

The event handler receives an argument of type ToolOpeningEventArgs containing data related to this event. The following ToolOpeningEventArgs properties provide information specific to this event.

PropertyDescription
Handled (Inherited from System.Windows.RoutedEventArgs)Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSource (Inherited from System.Windows.RoutedEventArgs)Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class.
RoutedEvent (Inherited from System.Windows.RoutedEventArgs)Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance.
Source (Inherited from System.Windows.RoutedEventArgs)Gets or sets a reference to the object that raised the event.
Tool (Inherited from Infragistics.Windows.Ribbon.Events.RoutedToolEventArgs)Returns the tool instance (read-only)
Remarks

The QuickCustomizeMenu is a popup menu that is displayed to the end user with options for customizing the XamRibbon. It includes options for changing the XamRibbon.IsMinimized state and XamRibbon.QuickAccessToolbarLocation properties as well as adding and removing common tools from the QAT. Common tools are those whose ButtonTool.IsQatCommonTool has been set to true. When set to true, the caption of the tool is displayed as a menu item within the QuickCustomizeMenu. If an instance of that tool is currently on the QAT, the menu item will appear checked and clicking that menu item will remove that instance of the tool from the QAT. If an instance of that tool is not currently on the QAT, the menu item will appear unchecked and clicking the menu item will cause an instance of that tool to be created and added to the end of the QAT's System.Windows.Controls.ItemsControl.Items collection.

The QuickCustomizeMenuOpening provides an opportunity to add/remove items from the menu before it is displayed to the end user.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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