Show / Hide Table of Contents

Class PopupManager

Instances of this class represent a popup manager that contains the necessary business logic for displaying and editing popup information for geo-elements. This class is useful, for instance, if you want to create your own View for displaying a Popup.

Inheritance
System.Object
PopupManager
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Mapping.Popups
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Obsolete("Use Popup for viewing and FeatureForm for editing features")]
public class PopupManager : INotifyPropertyChanged

Constructors

Name Description
PopupManager(Popup)

Initializes a new instance of the PopupManager class.

Properties

Name Description
AllowDelete

Gets a value indicating whether or not the popup view should allow deleting.

AllowEdit

Gets a value indicating whether or not the popup view should allow editing.

AllowEditAttachments

Gets a value indicating whether or not the popup view should allow editing the attachments.

AllowEditGeometry

Gets a value indicating whether or not the popup view should allow editing the geometry.

AttachmentManager

Gets the attachment manager for this popup

CustomDescriptionHtml

Gets the text to display as the custom HTML description.

DisplayedFields

Gets the PopupField Values that are for display purposes only

EditableDisplayFields

Gets the PopupField Values that are editable

EditSummary

Gets the edit summary text.

EvaluatedElements

Gets a collection of PopupElement objects evaluated asynchronously by EvaluateExpressionsAsync().

FeatureType

gets the current FeatureType, if any, for the GeoElement

Formatter

Gets or sets the formatter used for formatting dates and numbers. Defaults to System.Globalization.CultureInfo.CurrentCulture.

GeometryEditor

Gets or sets the geometry editor for editing the feature.

IsEditing

Gets a value indicating whether editing is currently enabled.

IsGeoElementValid

Gets a value indicating whether or not the GeoElement is in a valid state as far as the values it has set in its attributes and its geometry.

IsGeometryValid

Gets a value indicating whether the geometry is in a valid state for finishing the edit

Popup

Gets the Popup instance this manager is based on

ShowAttachments

Gets a value indicating whether or not the popup view should show the attachments.

ShowCustomDescriptionHtml

Gets a value indicating whether or not the popup view should show the custom description HTML.

ShowEditSummary

Gets a value indicating whether or not the popup view should show the edit info summary.

ShowMedia

Gets a value indicating whether or not the popup view should show the media.

Symbol

Gets the symbol used by the popup's geo-element

Title

Gets the text to display as the popup title.

TreatWarningsAsErrors

Gets or sets a value indicating whether warnings should be treated as errors.

Methods

Name Description
CancelEditing()

Cancels the editing of the popup. This rolls the GeoElement back to its original state.

EvaluateExpressionsAsync()

Asynchronously evaluates all expressions, including Arcade FeatureSet functions available at Expressions. This method must be called before displaying the popup information in a UI and after FinishEditingAsync() so you can use the synchronous methods GetFormattedValue(PopupField), Substitute(String), and the CustomDescriptionHtml property to get the formatted string representation. If there are no Expressions then result array will be empty.

FinishEditingAsync()

Completes the edit against the GeoElement.

GetContingencyValidationErrors()

Returns the set of all field contingency validation errors.

GetContingencyValidationWarnings()

Returns the set of all field contingency validation warnings.

GetContingentValues(PopupField)

Gets the contingent values for the specified field.

GetDomain(PopupField)

Gets the domain for the given field.

GetFieldByName(String)

Returns the PopupField for a given field name.

GetFieldLabel(PopupField)

Gets the label for the specified PopupField.

GetFieldType(PopupField)

Gets the type of field for the popup field

GetFieldValue(PopupField)

Gets the attribute value for the field.

GetFieldValue(String, PopupElement)

Returns the attribute value for the field specified by a name.

GetFormattedValue(PopupField)

Returns a formatted String representation of the current popup field's value.

GetMaxLength(PopupField)

Gets the maximum text length of the field

GetValidationError(PopupField)

Gets the validation error for the specified field - if any.

GetValidationWarning(PopupField)

Gets the validation warning for the specified field.

IsInFieldGroup(PopupField)

Returns a value indicating whether the specified field participates in a FieldGroup.

IsNullable(PopupField)

Gets a value indicating whether the provided field allows null values.

IsTypeIdField(PopupField)

Gets a value indicating whether the provided field is a type id field.

StartEditing()

Starts editing of the GeoElement.

Substitute(String)

Substitutes attribute values for attribute place-holders in a given template string.

UpdateValue(FeatureTemplate, Boolean)

Updates the attribute value for a field.

UpdateValue(Object, PopupField)

Updates the attribute value for a field.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.