MapControl Class
A Map control to display raster and vector maps.
Namespace: DevExpress.UI.Xaml.Map
Assembly: DevExpress.UI.Xaml.Map.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
[ContentProperty(Name = "Layers")]
[ToolboxTabName("DX.21.2: Visualization")]
public class MapControl :
Control,
IAnimatable
Remarks
To learn more, see Map Control.
Example
This lesson demonstrates how to create a simple map application which connects to the Bing Maps data provider.
Note
A complete sample project is available at: https://github.com/DevExpress-Examples/getting-started-lesson-1-connecting-a-map-control-to-ms-bing-e4321
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:BingMapsLesson"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Map="using:DevExpress.UI.Xaml.Map"
x:Class="BingMapsLesson.MainPage"
mc:Ignorable="d">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Map:MapControl ZoomLevel="3" >
<Map:MapControl.Layers>
<Map:ImageTilesLayer>
<Map:ImageTilesLayer.DataProvider>
<Map:BingMapDataProvider Kind="Area"
BingKey="YOUR BING MAPS KEY" />
</Map:ImageTilesLayer.DataProvider>
</Map:ImageTilesLayer>
</Map:MapControl.Layers>
</Map:MapControl>
</Grid>
</Page>
Inheritance
Object
DependencyObject
Windows.UI.Xaml.UIElement
FrameworkElement
Control
MapControl
See Also