Skip to main content

How to: Add a Map Control via XAML

This is a short introductory example, which describes how to add a Map Control to your WPF application in a XAML designer.

  • Run MS Visual Studio 2012, 2013, 2015, 2017 or 2019.
  • Create a new WPF Application project or open an existing one.
  • Open the Solution Explorer, right-click References and choose Add Reference… to add the Map Control Library.


  • Then, locate the DevExpress.Xpf.Map.v22.1 assembly and click it.


    Repeat this step to add the DevExpress.Data.v22.1 and DevExpress.Map.v22.1.Core references.

    Click OK to apply changes and close the window.

  • Switch to the XAML designer. And add a Map control to the window.
  • The XAML should look like following. If it does not, overwrite XAML with the following.

    <Window x:Class="DXMapExample.MainWindow"
            Title="MainWindow" Height="350" Width="525" >
            <dxm:MapControl Name="mapControl1" />

That’s all - the MapControl has been added to your application.

See Also