private void WpfMap_Loaded(object sender, RoutedEventArgs e) { wpfMap1.MapUnit = GeographyUnit.DecimalDegree; WorldMapKitWmsWpfOverlay worldMapKitOverlay = new WorldMapKitWmsWpfOverlay(); wpfMap1.Overlays.Add(worldMapKitOverlay); ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"..\..\SampleData\Data\Countries02.shp"); worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green)); worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; LayerOverlay layerOverlay = new LayerOverlay(); layerOverlay.Drawing += new System.EventHandler(layerOverlay_Drawing); layerOverlay.Drawn += new System.EventHandler(layerOverlay_Drawn); layerOverlay.TransitionEffect = TransitionEffect.None; layerOverlay.Layers.Add("WorldLayer", worldLayer); wpfMap1.Overlays.Add("WorldOverlay", layerOverlay); wpfMap1.CurrentExtent = new RectangleShape(-133.2515625, 89.2484375, 126.9046875, -88.290625); wpfMap1.Refresh(); } void layerOverlay_Drawn(object sender, DrawnOverlayEventArgs e) { stopWatch.Stop(); MessageBox.Show("This Overlay Used:" + stopWatch.Elapsed.TotalMilliseconds.ToString() + "ms"); } System.Diagnostics.Stopwatch stopWatch=new System.Diagnostics.Stopwatch(); void layerOverlay_Drawing(object sender, DrawingOverlayEventArgs e) { stopWatch.Start(); }