Example #1
0
        internal virtual float MeasureHeight(UIElement child)
        {
            var result = 0f;

            if (child.VerticalAlignment == VerticalAlignment.Stretch)
            {
                result = this.ActualHeight;
            }
            else
            {
                result = child.MeasureHeight(this.ActualHeight);
            }

            return(result);
        }
Example #2
0
		internal virtual float MeasureHeight (UIElement child) {
			var result = 0f;
			if (child.VerticalAlignment == VerticalAlignment.Stretch)
				result = this.ActualHeight;
			else
				result = child.MeasureHeight (this.ActualHeight);

			return result;
		}