Skip to main content

MapWebRequestEventHandler Delegate

A method that will handle the MapImageDataProviderBase.WebRequest event.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v23.1.dll

NuGet Package: DevExpress.Wpf.Map


public delegate void MapWebRequestEventHandler(
    object sender,
    MapWebRequestEventArgs e


Name Type Description
sender Object

The event source.

e MapWebRequestEventArgs

A MapWebRequestEventArgs object that contains event data.


When creating a MapWebRequestEventHandler delegate, you identify the method that will handle the corresponding event. To associate an event with your event handler, add a delegate instance to this event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see Events and Delegates in MSDN.


This example shows how you can implement a custom proxy to make a request for map tiles from the Bing Maps web service.

To customize a web request, handle the MapImageDataProviderBase.WebRequest event. Then, use the web request arguments to specify your custom map request settings (e.g., custom MapWebRequestEventArgs.Credentials, MapWebRequestEventArgs.Headers for a proxy, etc.) to the Bing Maps data provider.

View Example

        Title="MainWindow" Height="350" Width="525">
        <dxm:MapControl Name="mapControl1" >
            <dxm:ImageTilesLayer x:Name="imageTilesLayer">
                    <dxm:BingMapDataProvider BingKey="INSERT_YOUR_BING_KEY_HERE"   
                <dxm:MapDot Location="54.196353,37.611622" Size="10"/>
See Also