Show / Hide Table of Contents

Class BasemapGallery

Displays a collection of images representing basemaps from ArcGIS Online, a user-defined Portal, or a user-defined collection.

Inheritance
Object
BasemapGallery
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class BasemapGallery : TemplatedView
Remarks

If connected to a GeoView, changing the basemap selection will change the connected Map or Scene's basemap. Only basemaps whose spatial reference matches the map or scene's spatial reference can be selected for display.

Constructors

| Improve this Doc View Source

BasemapGallery()

Initializes a new instance of the BasemapGallery class.

Declaration
public BasemapGallery()

Fields

| Improve this Doc View Source

AvailableBasemapsProperty

Identifies the AvailableBasemaps bindable property.

Declaration
public static readonly BindableProperty AvailableBasemapsProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

GalleryViewStyleProperty

Identifies the GalleryViewStyle bindable property.

Declaration
public static readonly BindableProperty GalleryViewStyleProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

GeoModelProperty

Identifies the GeoModel bindable property.

Declaration
public static readonly BindableProperty GeoModelProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

GridItemTemplateProperty

Identifies the GridItemTemplate bindable property.

Declaration
public static readonly BindableProperty GridItemTemplateProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ListItemTemplateProperty

Identifies the ListItemTemplate bindable property.

Declaration
public static readonly BindableProperty ListItemTemplateProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

PortalProperty

Identifies the Portal bindable property.

Declaration
public static readonly BindableProperty PortalProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

SelectedBasemapProperty

Identifies the SelectedBasemap bindable property.

Declaration
public static readonly BindableProperty SelectedBasemapProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

AvailableBasemaps

Gets or sets the gallery of basemaps to show.

Declaration
public IList<BasemapGalleryItem>? AvailableBasemaps { get; set; }
Property Value
Type Description
Nullable<IList<BasemapGalleryItem>>
Remarks

When Portal is set, this collection will be overwritten.

| Improve this Doc View Source

GalleryViewStyle

Gets or sets the view style for the gallery.

Declaration
public BasemapGalleryViewStyle GalleryViewStyle { get; set; }
Property Value
Type Description
BasemapGalleryViewStyle
| Improve this Doc View Source

GeoModel

Gets or sets the connected GeoModel.

Declaration
public GeoModel? GeoModel { get; set; }
Property Value
Type Description
Nullable<GeoModel>
| Improve this Doc View Source

GridItemTemplate

Gets or sets the template used to show basemaps in a grid.

Declaration
public DataTemplate? GridItemTemplate { get; set; }
Property Value
Type Description
Nullable<DataTemplate>
See Also
GalleryViewStyle
| Improve this Doc View Source

ListItemTemplate

Gets or sets the data template used to show basemaps in a list.

Declaration
public DataTemplate? ListItemTemplate { get; set; }
Property Value
Type Description
Nullable<DataTemplate>
See Also
GalleryViewStyle
| Improve this Doc View Source

Portal

Gets or sets the portal used to populate the basemap list.

Declaration
public ArcGISPortal? Portal { get; set; }
Property Value
Type Description
Nullable<ArcGISPortal>
| Improve this Doc View Source

SelectedBasemap

Gets or sets the selected basemap.

Declaration
public BasemapGalleryItem SelectedBasemap { get; set; }
Property Value
Type Description
BasemapGalleryItem

Methods

| Improve this Doc View Source

OnApplyTemplate()

Declaration
protected override void OnApplyTemplate()
| Improve this Doc View Source

OnSizeAllocated(Double, Double)

Declaration
protected override void OnSizeAllocated(double width, double height)
Parameters
Type Name Description
Double width
Double height

Events

| Improve this Doc View Source

BasemapSelected

Event raised when a basemap is selected.

Declaration
public event EventHandler<BasemapGalleryItem>? BasemapSelected
Event Type
Type Description
Nullable<EventHandler<BasemapGalleryItem>>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX