示例#1
0
文件: Popup.cs 项目: Ref12/Grazor
            protected override Size ArrangeOverride(Size finalSize)
            {
                AdornerLayer.Arrange(new Rect(finalSize));

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

                return(finalSize);
            }
示例#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);
        }
示例#3
0
 protected override Size ArrangeOverride(Size finalSize)
 {
     AdornerLayer.Arrange(new Rect(finalSize));
     PopupLayer.Arrange(new Rect(finalSize));
     return(base.ArrangeOverride(finalSize));
 }