Esempio n. 1
0
        internal virtual float MeasureWidth(UIElement child)
        {
            var result = 0f;

            if (child.HorizontalAlignment == HorizontalAlignment.Stretch)
            {
                result = this.ActualWidth;
            }
            else
            {
                result = child.MeasureWidth(this.ActualWidth);
            }

            return(result);
        }
Esempio n. 2
0
		internal virtual float MeasureWidth (UIElement child) {
			var result = 0f;
			if (child.HorizontalAlignment == HorizontalAlignment.Stretch)
				result = this.ActualWidth;
			else
				result = child.MeasureWidth (this.ActualWidth);

			return result;
		}