ToolTipEventHandler Delegate

Represents the method that handles events that occur when a tooltip opens and closes.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)

public delegate void ToolTipEventHandler (
	Object sender,
	ToolTipEventArgs e
/** @delegate */
public delegate void ToolTipEventHandler (
	Object sender, 
	ToolTipEventArgs e
In XAML, you can use delegates but you cannot define your own.



The current element that is along the event's route.


The event arguments that contain additional information about the event.

When a tooltip opens and closes, this class provides and an event handler. The element that specifies the tooltip inherits from either FrameworkElement or ContentElement. Therefore, open and close events exist on both of these classes. The following table lists the events that use this event handler.

Events that occur when a tooltip opens or closes

These events are registered by the ToolTipService class as the ToolTipOpeningEvent and ToolTipClosingEvent fields. The FrameworkElement and FrameworkContentElement classes both implement the ToolTipService and expose this event by defining the events in the previous table

If the tooltip is defined as a ToolTip object, the Opened and Closed events of the ToolTip class are also raised.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0