public virtual void ParentAbsoluteLocationChanged(LocationChangeEventArgs e) { AbsoluteBounds.Location = e.AbsoluteLocation.Vec; AbsoluteBounds.Left += Bounds.Left;; AbsoluteBounds.Top += Bounds.Top; if (OverrideLayout == true) { AbsoluteBounds.Left += LayoutChange.X; AbsoluteBounds.Top += LayoutChange.Y; AbsoluteBounds.Width = Bounds.Width; AbsoluteBounds.Height = Bounds.Height; } else { AbsoluteBounds.Width = LayoutSize.X; AbsoluteBounds.Height = LayoutSize.Y; } OnParentAbsoluteLocationChanged.Invoke(this, e); }
public override void ParentAbsoluteLocationChanged(LocationChangeEventArgs e) { base.ParentAbsoluteLocationChanged(e); RelocateChildren(); }