Class BasemapGallery
Displays a collection of images representing basemaps from ArcGIS Online, a user-defined Portal, or a user-defined collection.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[TemplatePart(Name = "PART_InnerListView", Type = typeof(ListView))]
[TemplatePart(Name = "PART_LoadingScrim", Type = typeof(UIElement))]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_LayerLegendWinRTTypeDetails))]
public class BasemapGallery : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<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
| Name | Description |
|---|---|
| BasemapGallery() | Initializes a new instance of the BasemapGallery class. |
Fields
| Name | Description |
|---|---|
| AvailableBasemapsProperty | Identifies the AvailableBasemaps dependency property. |
| GalleryViewStyleProperty | Identifies the GalleryViewStyle dependency property. |
| GeoModelProperty | Identifies the GeoModel dependency property. |
| GridItemContainerStyleProperty | Identifies the GridItemContainerStyle dependency property. |
| GridItemTemplateProperty | Identifies the GridItemTemplate dependency property. |
| ListItemContainerStyleProperty | Identifies the ListItemContainerStyle dependency property. |
| ListItemTemplateProperty | Identifies the ListItemTemplate dependency property. |
| PortalProperty | Identifies the Portal dependency property. |
| SelectedBasemapProperty | Identifies the SelectedBasemap dependency property. |
Properties
| Name | Description |
|---|---|
| AvailableBasemaps | Gets or sets the gallery of basemaps to show. |
| GalleryViewStyle | Gets or sets the view style for the gallery. |
| GeoModel | Gets or sets the connected GeoModel. |
| GridItemContainerStyle | Gets or sets the style used for the container used to display items when showing basemaps in a grid. |
| GridItemTemplate | Gets or sets the data template used to show basemaps in a grid. |
| ListItemContainerStyle | Gets or sets the style used for the container used to display items when showing basemaps in a list. |
| ListItemTemplate | Gets or sets the data template used to show basemaps in a list. |
| Portal | Gets or sets the portal to use for displaying basemaps. |
| SelectedBasemap | Gets or sets the selected basemap. |
Methods
| Name | Description |
|---|---|
| OnApplyTemplate() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |
Events
| Name | Description |
|---|---|
| BasemapSelected | Event raised when a basemap is selected. |