Version

ColumnHeaderToolTipDisplaying Event

Fired before a tooltip is displayed for a ColumnHeaderUIElement.
Syntax
'Declaration
 
Public Event ColumnHeaderToolTipDisplaying As ColumnHeaderToolTipDisplayingHandler
public event ColumnHeaderToolTipDisplayingHandler ColumnHeaderToolTipDisplaying
Event Data

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

PropertyDescription
ButtonElement Returns the DateNavigationButtonUIElement instance for which the tooltip is about to be displayed, or null if the tooltip is not being displayed for that element.
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
HeaderElement Returns the ColumnHeaderUIElement instance for which the tooltip is about to be displayed.
ToolTipInfo (Inherited from Infragistics.Win.UltraWinSchedule.ToolTipEventArgs)Returns or sets the ToolTipInfo structure that contains information about the tooltip about to be displayed.
Example
The following code sample demonstrates how to use the tooltip-related events to prevent all tooltips from appearing:

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports System.Collections.Generic
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports System.Diagnostics

    Public Sub DisableAllToolTips(ByVal control As UltraTimelineView)

        '  Register an event handler for each of the tooltip events
        '  since all the tooltip event args classes derive from
        '  ToolTipEventArgs, they can share the handler.
        AddHandler control.ColumnHeaderToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.OwnerHeaderToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.ActivityScrollButtonToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.AppointmentToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.HolidayToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
        AddHandler control.DateTimeIntervalLabelToolTipDisplaying, AddressOf Me.OnToolTipDisplaying
    End Sub

    Private Sub OnToolTipDisplaying(ByVal sender As Object, ByVal e As ToolTipEventArgs)
        e.Cancel = True
    End Sub
using System.Collections.Generic;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

    public void DisableAllToolTips( UltraTimelineView control )
    {
        //  Register an event handler for each of the tooltip events;
        //  since all the tooltip event args classes derive from
        //  ToolTipEventArgs, they can share the handler.
        control.ColumnHeaderToolTipDisplaying += new ColumnHeaderToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.OwnerHeaderToolTipDisplaying += new OwnerHeaderToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.ActivityScrollButtonToolTipDisplaying += new ActivityScrollButtonToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.AppointmentToolTipDisplaying += new AppointmentToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.HolidayToolTipDisplaying += new HolidayToolTipDisplayingHandler(this.OnToolTipDisplaying);
        control.DateTimeIntervalLabelToolTipDisplaying += new DateTimeIntervalLabelToolTipDisplayingHandler(this.OnToolTipDisplaying);
    }

    private void OnToolTipDisplaying(object sender, ToolTipEventArgs e)
    {
        e.Cancel = true;
    }
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