Show / Hide Table of Contents

Property Elements

Elements

Gets a mutable, ordered list of pop-up elements.

Declaration
public IList<PopupElement> Elements { get; }
Property Value
Type Description
System.Collections.Generic.IList<PopupElement>

A mutable, ordered list of PopupElement objects.

Remarks

The order of the collection is the order that elements are shown in the pop-up window.

For backward compatibility with a webmap or webscene created by clients that don't support the popup elements, a few popup elements are created to match the legacy popup style when reading a popup definition without popup elements:

  • A TextPopupElement if Description is not empty.
  • A FieldsPopupElement if Description is empty.
  • A MediaPopupElement if Media is not empty.
  • An AttachmentsPopupElement if ShowAttachments is true.

Vice versa, if the user updates the popup elements, the legacy popup style is updated during the PopupDefinition serialization, in order to match as much as possible the popup elements, so that older clients can display a popup that looks similar.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7
In This Article
Back to top Copyright © 2022 Esri.