Example #1
0
        public override bool CalculateLayout()
        {
            if (!LayoutCalculated && UnderlyingType != null)
            {
                if (!base.CalculateLayout())
                {
                    return(false);
                }
                if (!UnderlyingType.CalculateLayout())
                {
                    return(false);
                }

                InstanceSize     = UnderlyingType.InstanceSize;
                LayoutCalculated = true;
                return(true);
            }

            return(true);
        }