Share via


UIElement.IsVisible Property

Gets a value indicating whether this element is visible in the user interface (UI).

Namespace: Microsoft.SPOT.Presentation
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public bool IsVisible { get; }

Property Value

true if the element is visible; otherwise, false.

Remarks

Determination of the IsVisible value takes all factors of layout into account. In contrast, the Visibility property, which is settable, only indicates the intention to programmatically make an element visible or invisible.

Elements where IsVisible is false do not participate in input events (or commands), do not influence either the "measure" or "arrange" passes of layout, are not focusable, and are not in a tab sequence.

IsVisible is not intended to be used as a style trigger. Using IsVisible as a style trigger might have unpredicable results. IsVisible is intended for state checking by lower level input implementations.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

UIElement Class
UIElement Members
Microsoft.SPOT.Presentation Namespace