Language

VisualElement.IsVisible Property

Definition

Gets or sets a value that determines whether this element will be visible on screen and take up space in layouts. This is a bindable property.

public:
 property bool IsVisible { bool get(); void set(bool value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.VisualElement+VisibilityConverter))]
public bool IsVisible { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.VisualElement+VisibilityConverter))>]
member this.IsVisible : bool with get, set
Public Property IsVisible As Boolean

Property Value

Attributes

Remarks

This property represents the visibility set directly on the element. The effective visibility, available through Visibility, also depends on the visibility of the element's ancestors.

When an element has IsVisible set to false it will no longer take up space in layouts or be eligible to receive any kind of input event.

Applies to