ScreenTipService Class
A service for managing screen tips.
public class ScreenTipService
- Inheritance:
- object object
Properties
Current
The instance of ScreenTipService for the current thread.
public static ScreenTipService Current { get; }
Property Value
Remarks
The value of this property is thread-specific and should only be accessed from the same thread that created the control which is using the service.
CurrentScreenTip
The currently displayed ScreenTip.
Methods
GetScreenTipFooter(DependencyObject)
Gets the value of the ScreenTipFooter attached property for the specified object.
public static object? GetScreenTipFooter(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
GetScreenTipHeader(DependencyObject)
Gets the value of the ScreenTipHeader attached property for the specified object.
public static object GetScreenTipHeader(DependencyObject obj)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object from which the property value is read. |
Returns
NotifyToolTipOpening(object, ToolTipEventArgs)
Notifies this service that a ToolTip is opening. If the ToolTip associated with the sender is a ScreenTip then the ScreenTipOpening event will be raised.
public void NotifyToolTipOpening(object sender, ToolTipEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| sender | object | The sender of the event data. |
| e | ToolTipEventArgs | The ToolTipEventArgs containing event data. |
SetScreenTipFooter(DependencyObject, object?)
Sets the value of the ScreenTipFooter attached property to the specified object.
public static void SetScreenTipFooter(DependencyObject obj, object? value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | object | The value to set. |
SetScreenTipHeader(DependencyObject, object)
Sets the value of the ScreenTipHeader attached property to the specified object.
public static void SetScreenTipHeader(DependencyObject obj, object value)
| Parameter | Type | Description |
|---|---|---|
| obj | DependencyObject | The object to which the attached property is written. |
| value | object | The value to set. |
Events
ScreenTipOpening
Occurs before a ScreenTip is opened, allowing for customization.
public event EventHandler<ToolTipEventArgs>? ScreenTipOpening
Event Type
Fields
ScreenTipFooterProperty
Defines the ScreenTipFooter property.
public static readonly DependencyProperty ScreenTipFooterProperty
ScreenTipHeaderProperty
Defines the ScreenTipHeader property.
public static readonly DependencyProperty ScreenTipHeaderProperty
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()