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