Hi,
I've added the ScaleBarAdornmentLayer with the following code:
ScaleBarAdornmentLayer scaleBar = new ScaleBarAdornmentLayer();
scaleBar.Location = AdornmentLocation.LowerLeft;
scaleBar.YOffsetInPixel = -20f;
scaleBar.UnitFamily = UnitSystem.Metric;
scaleBar.HasMask = true;
scaleBar.MaskBrush = new GeoSolidBrush(GeoColor.FromArgb(150, GeoColor.StandardColors.White));
scaleBar.MaskContour = new GeoPen(GeoColor.StandardColors.Transparent);
scaleBar.TextColor = GeoColor.StandardColors.White;
wpfMap1.AdornmentOverlay.Layers.Add("ScaleBarAdornmentLayer", scaleBar);
I've subscribed to the AdornmentOverlay.Drawn event, and I'm logging the Is there any workaround? Thanks, GregDrawingTime. I've noticed that with the scale bar added to my map, the refresh is 0.1 seconds for just the AdornmentOverlay during a Pan operation. This makes the panning seem chunky. Without the scale bar, the panning appears much more fluid to the user.