Show “Back to Menu” Button in iOS NavigationBar with Xamarin.Forms

后端 未结 3 1152
渐次进展
渐次进展 2020-12-18 00:01

I\'m trying to build a cross-platform app using C# and Xamarin.Forms. It contains a slide-out menu implemented in form of a MasterDetailPage. While on Android t

3条回答
  •  旧时难觅i
    2020-12-18 00:20

    Your on the right track, your NavigatePage needs to go on the Detail so

    Detail = new ContentPage { Content = new Label { Text = "A" } }
    
    and
    
    MDPage.Detail = new ContentPage { Content = new Label { Text = name } };
    

    would be

    Detail = new NavigationPage(new ContentPage { Content = new Label { Text = "A" } })
    
    and
    
    MDPage.Detail = new NavigationPage(new ContentPage { Content = new Label { Text = name } });
    

提交回复
热议问题