public bool IsCloseTo(MeasureData other) { if (other == null) { return false; } bool isClose = DoubleUtil.AreClose(AvailableSize, other.AvailableSize); isClose &= DoubleUtil.AreClose(Viewport, other.Viewport); return isClose; }
public bool IsCloseTo(MeasureData other) { if (other == null) { return(false); } bool isClose = DoubleUtil.AreClose(AvailableSize, other.AvailableSize); isClose &= DoubleUtil.AreClose(Viewport, other.Viewport); return(isClose); }
internal static void SetMeasureDataOnChild(UIElement element, UIElement child, Size childConstraint) { MeasureData measureData = element.MeasureData; if (measureData != null) { MeasureData childData = new MeasureData(measureData); childData.AvailableSize = childConstraint; child.MeasureData = childData; } else { child.MeasureData = null; } }
public MeasureData(MeasureData data) : this (data.AvailableSize, data.Viewport) { }
public MeasureData(MeasureData data) : this(data.AvailableSize, data.Viewport) { }