Dela via


ToolTip.IsOpen Property

Definition

Gets or sets a value that indicates whether the ToolTip is visible.

public:
 property bool IsOpen { bool get(); void set(bool value); };
bool IsOpen();

void IsOpen(bool value);
public bool IsOpen { get; set; }
var boolean = toolTip.isOpen;
toolTip.isOpen = boolean;
Public Property IsOpen As Boolean

Property Value

Boolean

bool

true if the ToolTip is visible; otherwise, false. The default is false.

Remarks

This property is not typically set in XAML.

A ToolTip must be assigned to another UI element that is its owner. In XAML, use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. In code, use the ToolTipService.SetToolTip method to assign the ToolTip to an owner. If you set the IsOpen property to true in your app code before the ToolTip is assigned to an owner, an exception is thrown.

Applies to

See also