'Declaration Public Event AfterRibbonTabSelected As RibbonTabEventHandler
public event RibbonTabEventHandler AfterRibbonTabSelected
The event handler receives an argument of type RibbonTabEventArgs containing data related to this event. The following RibbonTabEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Tab | Returns the tab associated with the event. |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolBars Private Sub UltraToolbarsManager1_AfterRibbonTabSelected(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinToolbars.RibbonTabEventArgs) Handles UltraToolbarsManager1.AfterRibbonTabSelected Dim messageText As String = String.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key) Debug.WriteLine(messageText) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinToolBars; using System.Diagnostics; private void ultraToolbarsManager1_AfterRibbonTabSelected(object sender, RibbonTabEventArgs e) { string messageText; if (e.Tab != null) messageText = string.Format("The '{0}' ribbon tab has just been selected.", e.Tab.Key); else messageText = "No ribbon tab is selected."; Debug.WriteLine(messageText); }
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