Use this layer with your WPF application based on the ArcGIS API for WPF.
It supports reading both exploded and compact tile caches directly from disk and display it within the WPF Map Control.
Example:
<Window x:Class="TestApp.MainWindow" 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"
xmlns:samples="clr-namespace:ESRI.ArcGIS.Client.Samples"
Title="MainWindow" Height="400" Width="800">
<Grid>
<esri:Map x:Name="map1">
<samples:LocalTileCacheLayer
TileCacheFilePath="c:\ArcGISServer\arcgiscache\MyCompactCache_World\World\" />
</esri:Map>
</Grid>
</Window>
Set the TileCachePath to the folder where the conf.cdi and conf.xml files resides within your cache folders.
Click the attachment below to download the code for the layer.
Hi, This was added to the recent release of the ArcGIS Runtime SDK 1.0 for WPF - see the ArcGISLocalTiledLayer class. Cheers
ExtremeProg: Since this is merely an external sample, it can't go into the WPF SDK. The sample code is right there in the description. Make sure it points to the right folder where your compact or exploded cache resides.
Could you please add functioning example code with maps to InteractiveWPFSDKSource.zip. I cannot get tiles to load. Thank You