Example #1
0
        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);
        }
Example #2
0
 public override void ParentAbsoluteLocationChanged(LocationChangeEventArgs e)
 {
     base.ParentAbsoluteLocationChanged(e);
     RelocateChildren();
 }