Esempio n. 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; 
        }
Esempio n. 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);
        }
Esempio n. 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;
            } 
        } 
Esempio n. 4
0
 public MeasureData(MeasureData data) : this (data.AvailableSize, data.Viewport) 
 {
 } 
Esempio n. 5
0
 public MeasureData(MeasureData data) : this(data.AvailableSize, data.Viewport)
 {
 }