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.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class BasemapGallery : Control
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 dependency property.

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

GalleryViewStyleProperty

Identifies the GalleryViewStyle dependency property.

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

GeoModelProperty

Identifies the GeoModel dependency property.

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

GridItemContainerStyleProperty

Identifies the GridItemContainerStyle dependency property.

Declaration
public static readonly DependencyProperty GridItemContainerStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

GridItemTemplateProperty

Identifies the GridItemTemplate dependency property.

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

ListItemContainerStyleProperty

Identifies the ListItemContainerStyle dependency property.

Declaration
public static readonly DependencyProperty ListItemContainerStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ListItemTemplateProperty

Identifies the ListItemTemplate dependency property.

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

PortalProperty

Identifies the Portal dependency property.

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

SelectedBasemapProperty

Identifies the SelectedBasemap dependency property.

Declaration
public static readonly DependencyProperty SelectedBasemapProperty
Field Value
Type Description
DependencyProperty

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
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

GridItemContainerStyle

Gets or sets the style used for the container used to display items when showing basemaps in a grid.

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

GridItemTemplate

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

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

ListItemContainerStyle

Gets or sets the style used for the container used to display items when showing basemaps in a list.

Declaration
public Style? ListItemContainerStyle { get; set; }
Property Value
Type Description
Nullable<Style>
| 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>
| Improve this Doc View Source

Portal

Gets or sets the portal to use for displaying basemaps.

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
Remarks

This will be set to the gallery item that matches the basemap in the GeoModel.

Methods

| Improve this Doc View Source

OnApplyTemplate()

Declaration
protected override void OnApplyTemplate()

Events

| Improve this Doc View Source

BasemapSelected

Event raised when a basemap is selected.

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