public override int getTopLeftY()
        {
            if (percentTop != -1)
            {
                return((int)(percentTop * Relative.getHeight() + Relative.getTopLeftY()));
            }
            else if (percentBottom != -1)
            {
                return((int)(Relative.getBottomRightY() - percentBottom * Relative.getHeight() - getHeight()));
            }
            else if (bottom != -1)
            {
                return((int)(Relative.getBottomRightY() - bottom - getHeight()));
            }

            return((int)(top + Relative.getTopLeftY()));
        }
        public override int getTopLeftY()
        {
            if (Relative.GetType() == typeof(ViewScroll))
            {
                return(base.getTopLeftY());
            }

            if (percentTop != -1)
            {
                return((int)(percentTop * Relative.getHeight() + Relative.getTopLeftY()));
            }
            else if (percentBottom != -1)
            {
                return((int)(Relative.getBottomRightY() - percentBottom * Relative.getHeight() - getHeight()));
            }
            else if (bottom != -1)
            {
                return((int)(Relative.getBottomRightY() - bottom - getHeight()));
            }

            return((int)(top + Relative.getTopLeftY()));
        }