public StackPanel() { SubscribeForLifetime(nameof(Bounds), RedoLayout, this.LifetimeManager); SubscribeForLifetime(nameof(Margin), RedoLayout, this.LifetimeManager); Controls.Added.SubscribeForLifetime(Controls_Added, this.LifetimeManager); }