VisualElement.IsVisible Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
true
if the element should be rendered; otherwise, false
. Default value is true
.
- Attributes
Remarks
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for