Show / Hide Table of Contents

Enum GroupVisibilityMode

Specifies the visibility modes on a GroupLayer.

Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public enum GroupVisibilityMode

Fields

Name Description
Exclusive

Only one child is visible at a time.

In exclusive mode, only a single child may have its visible property set to true. When setting the visibility property of a child layer to true, all others will have their visibility set to false. However, the rendering of a child layer requires both its visibility property and its parent's visibility property to be true. In an implementation of a table of contents, a group layer will only ever contain one visible child layer.

Independent

Each child layer independently manages its visibility.

In independent mode, a child layer's property can be set independently of its parent's and siblings' properties. However, the parent's visibility still matters. A child layer renders only when both its own and its parent's properties are true. Hiding the parent hides all child layers in the group, while setting it back to visible restores each child's original state.

Inherited

Each child inherits the visibility of its parent group.

The visibility property of child layers is determined by the visibility of the parent layer and cannot be set independently of the parent. This means all child layers' visibility properties always match the visibility property of the parent. In an implementation of a table of contents, setting the parent's visibility to on or off will cause child layers to match. You may choose to hide all child layers from your table of contents given the group is treated as a single logical layer in terms of visibility.

Applies to

TargetVersions
.NET Standard 2.0100.9 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.9 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.9 - 100.12
Android100.9 - 100.15
iOS100.9 - 100.15
UWP100.9 - 200.1
In This Article
Back to top Copyright © 2022 Esri.