Class ToolTip
Represents a control that creates a pop-up window that displays information for an element in the UI.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class ToolTip : ContentControl
Constructors
| Improve this Doc View SourceToolTip()
Initializes a new instance of the ToolTip class.
Declaration
public ToolTip()
Fields
| Improve this Doc View SourceHorizontalOffsetProperty
Identifies the HorizontalOffset dependency property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsOpenProperty
Identifies the IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PlacementProperty
Identifies the Placement dependency property.
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PlacementTargetProperty
Identifies the PlacementTarget dependency property.
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
VerticalOffsetProperty
Identifies the VerticalOffset dependency property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceHorizontalOffset
Gets or sets the horizontal distance between the target origin and the pop-up alignment point. The default is 0.
Declaration
public double HorizontalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
IsOpen
Gets or sets a value that indicates whether the ToolTip is visible. True if the ToolTip is visible; otherwise, false. The default is false.
Declaration
public bool IsOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Placement
Gets or sets how the ToolTip should be positioned in relation to the PlacementTarget.
Declaration
public PlacementMode Placement { get; set; }
Property Value
Type | Description |
---|---|
PlacementMode | One of the PlacementMode values. The default is Mouse. |
PlacementTarget
Gets or sets the visual element or control that the tool tip should be positioned in relation to when opened by the ToolTipService.
Declaration
public UIElement PlacementTarget { get; set; }
Property Value
Type | Description |
---|---|
UIElement | The visual element or control that the tool tip should be positioned in relation to when opened by the ToolTipService. The default is null. |
VerticalOffset
Gets or sets the vertical distance between the target origin and the pop-up alignment point. The default is 0.
Declaration
public double VerticalOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Events
| Improve this Doc View SourceClosed
Occurs when a ToolTip is closed and is no longer visible.
Declaration
public event RoutedEventHandler Closed
Event Type
Type | Description |
---|---|
RoutedEventHandler |
Opened
Occurs when a ToolTip becomes visible.
Declaration
public event RoutedEventHandler Opened
Event Type
Type | Description |
---|---|
RoutedEventHandler |