void UpdateLeftBarButton() { var FlyoutPage = Element as FlyoutPage; if (!(FlyoutPage?.Detail is NavigationPage)) { return; } var detailRenderer = Platform.GetRenderer(FlyoutPage.Detail) as UINavigationController; UIViewController firstPage = detailRenderer?.ViewControllers.FirstOrDefault(); if (firstPage != null) { NavigationRenderer.SetFlyoutLeftBarButton(firstPage, FlyoutPage); } }
void UpdateLeftBarButton() { var FlyoutPage = Element as FlyoutPage; if (!(FlyoutPage?.Detail is NavigationPage)) { return; } var detailRenderer = Platform.GetRenderer(FlyoutPage.Detail) as UINavigationController; UIViewController firstPage = detailRenderer?.ViewControllers.FirstOrDefault(); if (firstPage != null) #pragma warning disable CS0618 // Type or member is obsolete { NavigationRenderer.SetFlyoutLeftBarButton(firstPage, FlyoutPage); } #pragma warning restore CS0618 // Type or member is obsolete }