Esempio n. 1
0
        protected override void Measure()
        {
            base.Measure();

            var h = null != _overlayBounds ? _overlayBounds.Height : 0;

            if (null != _label)
            {
                h += _label.GetExplicitOrMeasuredHeight();
            }

            MeasuredWidth  = MeasuredMinWidth = _frame.GetExplicitOrMeasuredWidth();
            MeasuredHeight = MeasuredMinHeight = h;
        }