Esempio n. 1
0
            protected override Size ArrangeOverride(Size finalSize)
            {
                AdornerLayer.Arrange(new Rect(finalSize));

                if (Child != null)
                {
                    Child.Arrange(new Rect(finalSize));
                }

                return(finalSize);
            }
Esempio n. 2
0
        protected override Size ArrangeOverride(Size arrangeSize)
        {
            Size result = base.ArrangeOverride(arrangeSize);

            if (this.Child != null)
            {
                Rect r = new Rect(new Point(0, 0), arrangeSize);
                _adornerLayer.Arrange(r);
                _eatAllHitTestRequests.Arrange(r);
            }
            return(result);
        }
Esempio n. 3
0
 protected override Size ArrangeOverride(Size finalSize)
 {
     AdornerLayer.Arrange(new Rect(finalSize));
     PopupLayer.Arrange(new Rect(finalSize));
     return(base.ArrangeOverride(finalSize));
 }