예제 #1
0
        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);
            }
        }
예제 #2
0
        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
        }