A newer version of this page is available. Switch to the current version.

MapControl.ZoomLevel Property

Gets or sets the current zoom level of a Map Control.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll


public double ZoomLevel { get; set; }

Property Value

Type Description

A double value specifying the current zoom level.


This example demonstrates how to connect to the Bing Maps web service using the BingMapDataProvider object.

Note that if you run this sample as is, you will get a warning message saying that the specified Bing Maps key is invalid. To learn more about Bing Map keys, please refer to the How to: Get a Bing Maps Key tutorial.

<Window xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"  
        Title="MainWindow" Height="350" Width="525">
        <dxm:MapControl CenterPoint="45,18" ZoomLevel="4" >
                <dxm:MiniMap Alignment="TopRight">
                        <dxm:FixedMiniMapBehavior CenterPoint="45, 18"/>
                        <dxm:BingMapDataProvider BingKey="YOUR BING KEY"/>
                    <dxm:BingMapDataProvider BingKey="YOUR BING KEY"/>
See Also