예제 #1
0
        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; 
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
            } 
        } 
예제 #4
0
 public MeasureData(MeasureData data) : this (data.AvailableSize, data.Viewport) 
 {
 } 
예제 #5
0
 public MeasureData(MeasureData data) : this(data.AvailableSize, data.Viewport)
 {
 }