コード例 #1
0
            internal void Layout(IntRectangle position)
            {
                var renderer = _view as IVisualElementRenderer;

                renderer.Element.Layout(position.ToFormsRectangle(_layout._context));

                // causes the private LAYOUT_REQUIRED flag to be set so we can be sure the Layout call will properly chain through to all children
                Measure(position.Width, position.Height);
                _layout.LayoutDecorated(_view,
                                        left: position.Left,
                                        top: position.Top,
                                        right: position.Right,
                                        bottom: position.Bottom
                                        );
            }