ToolTipClosingEvent Field

ToolTipService.ToolTipClosingEvent Field


Identifies the ToolTipClosing event that is exposed by objects that use the ToolTipService service to display tooltips.

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

public static readonly RoutedEvent ToolTipClosingEvent

Field Value

Type: System.Windows.RoutedEvent

The identifier for the ToolTipClosing event.

The ToolTipClosing event occurs immediately before a tooltip closes.

This field registers the behavior of the ToolTipClosingEvent event for classes that use this service. The FrameworkElement and FrameworkContentElement classes both implement the ToolTipService and expose this event through the common language runtime (CLR) accessors FrameworkElement.ToolTipClosing and FrameworkContentElement.ToolTipClosing.

If you specify the tooltip as a ToolTip object, the Closed event is also raised when the tooltip closes.

Legacy Code Example

The following example shows how to set an event handler for the ToolTipClosing event. In this case, the event handler is actually for FrameworkElement.ToolTipClosing, because the Ellipse where the handler is attached is a derived class of FrameworkElement.

Code snippet is not found. Confirm that the code snippet name 'ToolTipService' is correct.Code snippet is not found. Confirm that the code snippet name 'ToolTipService' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft