FrameworkContentElement.ToolTipOpening Event

Updated: February 2010

Occurs when any tooltip on the element is opened.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public event ToolTipEventHandler ToolTipOpening
<object ToolTipOpening="ToolTipEventHandler" .../>

Identifier field

ToolTipOpeningEvent

Routing strategy

Direct

Delegate

ToolTipEventHandler

To manually open tooltips, handlers of the events should mark the relevant event as handled. Otherwise, the value of the ToolTip property will be used to automatically open a context menu. Marking the event handled will effectively cancel the default action, and could be an opportunity to reset the value of the ToolTip property and then open the new ContextMenu. Note that this event will not be raised if ToolTip is a null reference or otherwise unset.

This event cannot be an EventTrigger in a style. This is because the identifier field of this event re-uses an implementation from a service that does not expose add/remove methods on the event.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Date

History

Reason

February 2010

Corrected routed event strategy.

Content bug fix.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft