-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ToolTipEventHandler.xml
58 lines (53 loc) · 4.4 KB
/
ToolTipEventHandler.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<Type Name="ToolTipEventHandler" FullName="System.Windows.Controls.ToolTipEventHandler">
<TypeSignature Language="C#" Value="public delegate void ToolTipEventHandler(object sender, ToolTipEventArgs e);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed ToolTipEventHandler extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Windows.Controls.ToolTipEventHandler" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub ToolTipEventHandler(sender As Object, e As ToolTipEventArgs)" />
<TypeSignature Language="F#" Value="type ToolTipEventHandler = delegate of obj * ToolTipEventArgs -> unit" />
<TypeSignature Language="C++ CLI" Value="public delegate void ToolTipEventHandler(System::Object ^ sender, ToolTipEventArgs ^ e);" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="sender" Type="System.Object" />
<Parameter Name="e" Type="System.Windows.Controls.ToolTipEventArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Docs>
<param name="sender">The object where the event handler is attached.</param>
<param name="e">The event data.</param>
<summary>Represents the method that will handle routed event that occur when a tooltip opens and closes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When a tooltip opens and closes, this delegate provides an event handler. The element that specifies the tooltip inherits from either <xref:System.Windows.FrameworkElement> or <xref:System.Windows.FrameworkContentElement>. 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|Events that occur when a tooltip closes|
|--------------------------------------------|---------------------------------------------|
|<xref:System.Windows.FrameworkElement.ToolTipOpening?displayProperty=nameWithType>|<xref:System.Windows.FrameworkElement.ToolTipClosing?displayProperty=nameWithType>|
|<xref:System.Windows.FrameworkContentElement.ToolTipOpening?displayProperty=nameWithType>|<xref:System.Windows.FrameworkContentElement.ToolTipClosing?displayProperty=nameWithType>|
These events are registered by the <xref:System.Windows.Controls.ToolTipService> class using the <xref:System.Windows.Controls.ToolTipService.ToolTipOpeningEvent> and <xref:System.Windows.Controls.ToolTipService.ToolTipClosingEvent> fields, but the <xref:System.Windows.Controls.ToolTipService> class does not expose these events on itself (attached or otherwise). The <xref:System.Windows.FrameworkElement> and <xref:System.Windows.FrameworkContentElement> classes both implement the <xref:System.Windows.Controls.ToolTipService> and expose this event by defining the events in the previous table, copying the <xref:System.Windows.Controls.ToolTipService> fields to create new routed event identifiers that exist on the <xref:System.Windows.FrameworkElement> and <xref:System.Windows.FrameworkContentElement> classes.
If the tooltip is defined as a <xref:System.Windows.Controls.ToolTip> object, the <xref:System.Windows.Controls.ToolTip.Opened> and <xref:System.Windows.Controls.ToolTip.Closed> events of the <xref:System.Windows.Controls.ToolTip> class are also raised when a tooltip opens and closes.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Controls.ToolTipEventArgs" />
<altmember cref="E:System.Windows.FrameworkContentElement.ToolTipOpening" />
<altmember cref="E:System.Windows.FrameworkContentElement.ToolTipClosing" />
<altmember cref="F:System.Windows.Controls.ToolTipService.ToolTipOpeningEvent" />
<altmember cref="F:System.Windows.Controls.ToolTipService.ToolTipClosingEvent" />
<altmember cref="E:System.Windows.Controls.ToolTip.Opened" />
<altmember cref="E:System.Windows.Controls.ToolTip.Closed" />
<altmember cref="T:System.Windows.Controls.ToolTip" />
</Docs>
</Type>