layout: default title: MediaPopupContent parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Popups

MediaPopupContent Class

A MediaContent popup element contains an individual or array of chart and/or image media elements to display within
a popup’s content.
ArcGIS Maps SDK for JavaScript

public class MediaPopupContent : dymaptic.GeoBlazor.Core.Components.Popups.PopupContent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PopupContent 🡒 MediaPopupContent

Constructors

MediaPopupContent() Constructor

Parameterless constructor for use as a Razor Component

public MediaPopupContent();

MediaPopupContent(string, string, IReadOnlyList, string) Constructor

Constructor for creating content in C# code.

public MediaPopupContent(string? title=null, string? description=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.Popups.MediaInfo>? mediaInfos=null, string? activeMediaInfoIndex=null);

Parameters

title System.String

Heading indicating what the media’s content represents.

description System.String

Describes the media’s content in detail.

mediaInfos System.Collections.Generic.IReadOnlyList<MediaInfo>

Contains the media elements representing images or charts to display within the PopupTemplate. This can be an

activeMediaInfoIndex System.String

Index of the current active media within the popup’s media content. This will be the media that is currently viewed

Properties

MediaPopupContent.ActiveMediaInfoIndex Property

Index of the current active media within the popup’s media content. This will be the media that is currently viewed
when displayed.

public string? ActiveMediaInfoIndex { get; set; }

Property Value

System.String

MediaPopupContent.Description Property

Describes the media’s content in detail.

public string? Description { get; set; }

Property Value

System.String

MediaPopupContent.MediaInfos Property

Contains the media elements representing images or charts to display within the PopupTemplate. This can be an
individual chart or image element, or an array containing a combination of any of these types.

public System.Collections.Generic.IList<dymaptic.GeoBlazor.Core.Components.Popups.MediaInfo>? MediaInfos { get; set; }

Property Value

System.Collections.Generic.IList<MediaInfo>

MediaPopupContent.Title Property

Heading indicating what the media’s content represents.

public string? Title { get; set; }

Property Value

System.String

MediaPopupContent.Type Property

The type of Popup Content

public override string Type { get; }

Property Value

System.String

Methods

MediaPopupContent.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.

MediaPopupContent.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

Remarks

This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.