I have created a legend with a title and several items. Title and items have different text styles.
then set height and width as below:
legendLayer.Height = (cbStyle.ClassBreaks.Count) * 45;
legendLayer.Width = 260;
legendLayer.Title = title;
legendLayer.Location =
AdornmentLocation.UpperRight;
m.AdornmentOverlay.Layers.Add(LegendLayerName, legendLayer);
Legend item’s text style is set with font 8 to start. It works when first time loading the map. However, then if I zoom the map and change map scales, the fond changes to 10 and items are closer to each other: I noticed that the legend’s height/weight did not get changed. It did not call the function that created the legend.
Any ideas?
Guangming