I have posted this on the desktopedition forum a while ago, and was told it would be looked at. The suggested fix was to run in single thread mode until a fix was found.
Here is the issue:
When using WPFDesktopEdition (and world map kit shape files) with the default options set for tiles, and using a tilecache, there are times where the cache will place the tile in the wrong directory. At least this is what I believe to be happening.
Attached is a screen shot of what I see.
I would attach my test program, but it references some world map kit rendering logic and I don't know if you would want that shared.
Here is my code to load the window:
WorldMapKitRenderLayer worldMapKitRenderLayer = new WorldMapKitRenderLayer(@"C:\Data\WorldMapKit\");
worldMapKitRenderLayer.LoadLayers();
LayerOverlay worldMapKitRenderLayerOverlay = new LayerOverlay();
worldMapKitRenderLayerOverlay.Layers.Add(worldMapKitRenderLayer);
//worldMapKitRenderLayerOverlay.TileType = TileType.SingleTile;
//worldMapKitRenderLayerOverlay.TransitionEffect = TransitionEffect.None;
FileBitmapTileCache bitCache = new FileBitmapTileCache(@"C:\temp2\newcache", "cache1");
bitCache.TileAccessMode = TileAccessMode.ReadAdd;
worldMapKitRenderLayerOverlay.TileCache = bitCache;
myMap.CurrentExtent = new RectangleShape(-103.245261126221, 47.391284767566, -96.2914037043457, 41.0632088370898);
myMap.MaximumScale = myMap.CurrentScale * 2;
myMap.Overlays.Add(worldMapKitRenderLayerOverlay);
myMap.CurrentExtent = WorldMapKitRenderLayer.DefaultExtent;
myMap.Refresh();
My question is, do I need to run in SingleTile mode at this time, or is there something else that can be done? Without caching the layers this isn't an issue, but then the time to display becomes too slow to be a viable option.