ScreenTipService Class
A service for managing screen tips.
public class ScreenTipService
- Inheritance:
- object object
Properties
Current
Gets the instance of ScreenTipService for the current thread.
public static ScreenTipService Current { get; }
Property Value
- ScreenTipService:
An instance of ScreenTipService for the current thread.
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
Gets the currently displayed ScreenTip.
public ScreenTip CurrentScreenTip { get; }
Property Value
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
- object:
The object's value.
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
- object:
The object's value.
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
Identifies the ScreenTipFooter
dependency property. This field is read-only.
public static readonly DependencyProperty ScreenTipFooterProperty
ScreenTipHeaderProperty
Identifies the ScreenTipHeader
dependency property. This field is read-only.
public static readonly DependencyProperty ScreenTipHeaderProperty