protected override void LayoutChildren(double x, double y, double width, double height) { if (MainView != null) { LayoutChildIntoBoundingRegion(MainView, new Rectangle(x, y, width, height)); } if (BottomView != null) { var measured = BottomView.Measure(width, height); LayoutChildIntoBoundingRegion(BottomView, new Rectangle(x, y + height - measured.Request.Height, width, measured.Request.Height)); } }
protected override SizeRequest OnMeasure(double widthConstraint, double heightConstraint) { if (MainView == null) { return(new SizeRequest()); } var mainViewSize = MainView.Measure(widthConstraint, heightConstraint); if (BottomView != null) { BottomView.Measure(widthConstraint, heightConstraint); } return(mainViewSize); }