In This Article

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

ScreenTipService

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.

public ScreenTip? CurrentScreenTip { get; }

Property Value

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

object

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

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

EventHandler<ToolTipEventArgs>

Fields

ScreenTipFooterProperty

Defines the ScreenTipFooter property.

public static readonly DependencyProperty ScreenTipFooterProperty

ScreenTipHeaderProperty

Defines the ScreenTipHeader property.

public static readonly DependencyProperty ScreenTipHeaderProperty

Inherited Members

Extension Methods