internal LayerCollection(MapControl mapControl, IMuteLegend legend) : base(mapControl) { _legend = legend as LegendControl; if (_legend == null) { throw new NullReferenceException("Invalid legend reference."); } }
/// <summary> /// Initializes a new instance of the <see cref="LegendGroup"/> class. /// </summary> internal LegendGroup(LegendControl leg, int handle) { _legend = leg; _layers = new List <LegendLayer>(); _icon = null; _recalcHeight = true; Handle = handle; Visible = Visibility.AllVisible; Expanded = true; StateLocked = false; }
/// <summary> /// Initializes a new instance of the <see cref="LegendGroups"/> class. /// </summary> internal LegendGroups(LegendControl leg) { _legend = leg; // must be first in constructor }