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.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 SourceBasemapGallery()
Initializes a new instance of the BasemapGallery class.
Declaration
public BasemapGallery()
Fields
| Improve this Doc View SourceAvailableBasemapsProperty
Identifies the AvailableBasemaps bindable property.
Declaration
public static readonly BindableProperty AvailableBasemapsProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GalleryViewStyleProperty
Identifies the GalleryViewStyle bindable property.
Declaration
public static readonly BindableProperty GalleryViewStyleProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GeoModelProperty
Identifies the GeoModel bindable property.
Declaration
public static readonly BindableProperty GeoModelProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GridItemTemplateProperty
Identifies the GridItemTemplate bindable property.
Declaration
public static readonly BindableProperty GridItemTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ListItemTemplateProperty
Identifies the ListItemTemplate bindable property.
Declaration
public static readonly BindableProperty ListItemTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
PortalProperty
Identifies the Portal bindable property.
Declaration
public static readonly BindableProperty PortalProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SelectedBasemapProperty
Identifies the SelectedBasemap bindable property.
Declaration
public static readonly BindableProperty SelectedBasemapProperty
Field Value
Type | Description |
---|---|
BindableProperty |
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 |
---|---|
Nullable<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> |
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
| Improve this Doc View SourceListItemTemplate
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
| Improve this Doc View SourcePortal
Gets or sets the portal used to populate the basemap list.
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 |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
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 SourceBasemapSelected
Event raised when a basemap is selected.
Declaration
public event EventHandler<BasemapGalleryItem>? BasemapSelected
Event Type
Type | Description |
---|---|
Nullable<EventHandler<BasemapGalleryItem>> |