protected override Size ArrangeOverride(Size finalSize) { AdornerLayer.Arrange(new Rect(finalSize)); if (Child != null) { Child.Arrange(new Rect(finalSize)); } return(finalSize); }
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); }
protected override Size ArrangeOverride(Size finalSize) { AdornerLayer.Arrange(new Rect(finalSize)); PopupLayer.Arrange(new Rect(finalSize)); return(base.ArrangeOverride(finalSize)); }