Back to Devexpress

How to: Add a Map Control via XAML

wpf-10968-controls-and-libraries-map-control-examples-general-how-to-add-a-map-control-via-xaml.md

latest1.3 KB
Original Source

How to: Add a Map Control via XAML

  • Jun 19, 2025

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

  • Run Microsoft Visual Studio.

  • 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.v25.2 assembly and click it.

  • 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.

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

See Also

How to: Add a Map Control at Design Time

How to: Add a Map Control at Runtime

How to: Customize Navigation Elements

How to: Add a Mini Map to the Map