/// <summary> /// Add the StepLabel to the parent /// </summary> /// <param name="newParent"></param> protected override void SwitchParent(Surface newParent) { if (newParent == Parent) { return; } ((Surface)Parent)?.RemoveStepLabel(this); base.SwitchParent(newParent); if (newParent == null) { return; } // Make sure the counter start is restored (this unfortunately happens multiple times... -> hack) newParent.CounterStart = _counterStart; newParent.AddStepLabel(this); }
public StepLabelContainer(Surface parent) : base(parent) { parent.AddStepLabel(this); InitContent(); Init(); }
public StepLabelContainer(Surface parent) : base(parent) { parent.AddStepLabel(this); InitContent(); }