Table of Contents

Method HideViewsInContainer

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

HideViewsInContainer<T>(VisualElement?, Type?)

Hides all child views of the specified type within the given container.

public static void HideViewsInContainer<T>(VisualElement? element, Type? noHide = null) where T : VisualElement

Parameters

element VisualElement

The container element whose child views will be evaluated. Must implement IVisualTreeElement.

noHide Type

The type of view which will not be hidden.

Type Parameters

T

The type of child views to hide. Must derive from VisualElement.

Remarks

This method iterates through the visual children of the specified container and sets the IsVisible property to false for all child elements of the specified type T.