WebMap With WMS Online

This sample demonstrates adding data in a WebMap document housed via ArcGIS Online (http://www.arcgis.com) in a WPF application. The WebMap.GetMapAsync Method call takes a Globally Unique Identifier (GUID) for the WebMap service provided by ArcGIS Online to obtain the geographic data layers. The WebMap's GetMapCompletedEventArgs.Map Property is used to add a Map Class to the WPF application for visual display. The map loaded in this sample includes an Open Geospatial Consortium (OGC) WMS layer. The sample also uses the ProxyUrl Property to demonstrate how a proxy service brokers web requests between the WPF client and the ArcGIS Online service that exposes a WebMap document. Use a proxy service when the WebMap document is not hosted on a site that provides a cross domain policy file (clientaccesspolicy.xml or crossdomain.xml).

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.WebMapWithWMS"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" Background="White">
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014