ScreenTipService Class
A service for managing screen tips.
public class ScreenTipService
- Inheritance:
- System.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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Object:
The object's value.
NotifyToolTipOpening(Object, ToolTipEventArgs)
Notifies this service that a System.Windows.Controls.ToolTip is opening. If the System.Windows.Controls.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 | System.Object | The sender of the event data. |
e | System.Windows.Controls.ToolTipEventArgs | The System.Windows.Controls.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 | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.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 | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Object | The value to set. |
Events
ScreenTipOpening
Occurs before a ScreenTip is opened, allowing for customization.
public event EventHandler<ToolTipEventArgs> ScreenTipOpening
Event Type
- System.EventHandler<System.Windows.Controls.ToolTipEventArgs>
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
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()