Class BasemapGallery
Displays a collection of images representing basemaps from ArcGIS Online, a user-defined Portal, or a user-defined collection.
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 SourceBasemapGallery()
Initializes a new instance of the BasemapGallery class.
Declaration
public BasemapGallery()
Fields
| Improve this Doc View SourceAvailableBasemapsProperty
Identifies the AvailableBasemaps dependency property.
Declaration
public static readonly DependencyProperty AvailableBasemapsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GalleryViewStyleProperty
Identifies the GalleryViewStyle dependency property.
Declaration
public static readonly DependencyProperty GalleryViewStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GeoModelProperty
Identifies the GeoModel dependency property.
Declaration
public static readonly DependencyProperty GeoModelProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GridItemContainerStyleProperty
Identifies the GridItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty GridItemContainerStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GridItemTemplateProperty
Identifies the GridItemTemplate dependency property.
Declaration
public static readonly DependencyProperty GridItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ListItemContainerStyleProperty
Identifies the ListItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ListItemContainerStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ListItemTemplateProperty
Identifies the ListItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ListItemTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PortalProperty
Identifies the Portal dependency property.
Declaration
public static readonly DependencyProperty PortalProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SelectedBasemapProperty
Identifies the SelectedBasemap dependency property.
Declaration
public static readonly DependencyProperty SelectedBasemapProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceAvailableBasemaps
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.
GalleryViewStyle
Gets or sets the view style for the gallery.
Declaration
public BasemapGalleryViewStyle GalleryViewStyle { get; set; }
Property Value
Type | Description |
---|---|
BasemapGalleryViewStyle |
GeoModel
Gets or sets the connected GeoModel.
Declaration
public GeoModel? GeoModel { get; set; }
Property Value
Type | Description |
---|---|
Nullable<GeoModel> |
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> |
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> |
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> |
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> |
Portal
Gets or sets the portal to use for displaying basemaps.
Declaration
public ArcGISPortal? Portal { get; set; }
Property Value
Type | Description |
---|---|
Nullable<ArcGISPortal> |
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 SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Events
| Improve this Doc View SourceBasemapSelected
Event raised when a basemap is selected.
Declaration
public event EventHandler<BasemapGalleryItem> BasemapSelected
Event Type
Type | Description |
---|---|
EventHandler<BasemapGalleryItem> |