Skip to main content

How to: Add a Map Control at Design Time

This is a short introductory example, which describes how to add a Map Control to your Silverlight application at design time within Visual Studio.

  • Run Microsoft Visual Studio 2010, 2012 or 2013. Visual Studio 2013 is used in this topic.
  • Create a new Silverlight Application project or open an existing one.
  • Switch to the Window designer.
  • On the Visual Studio toolbox, expand the DX.14.2: Data & Analytics tab, locate the MapControl item and drop it onto the window.

    lesson1-01-add-map-control

  • Right-click the MapControl object and choose the Layout | Reset All option in the context menu. This will stretch the Map control to fill the whole window.

    lesson1-02-reset-layout

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