protected override void OnLayout(bool changed, int l, int t, int r, int b) { base.OnLayout(changed, l, t, r, b); if (!CustomNavigationPage.GetIsTranslucent(CurrentPage)) { return; } int containerHeight = b - t; PageController.ContainerArea = new Rectangle(0, 0, Context.FromPixels(r - l), Context.FromPixels(containerHeight)); for (var i = 0; i < ChildCount; i++) { AView child = GetChildAt(i); if (child is Android.Support.V7.Widget.Toolbar toolbar) { continue; } child.Layout(0, 0, r, b); } }