internal override void Attach(LegendTree legendTree) { if (legendTree == null) return; base.Attach(legendTree); AttachLayerEventHandler(Layer); }