How to navigate inside master detail page?

RJ_11RJ_11 Member ✭✭

I have buttons on homepage. Dashboard button clicked and then i use Pushasync to push dashboard page. Then app leaves the master detail and a single page is displayed. How do i display dashboard page inside master detail.?

Tagged:

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Have you checked this sample :https://developer.xamarin.com/samples/xamarin-forms/Navigation/MasterDetailPage/

    <MasterDetailPage.Master>
        <local:MasterPage x:Name="masterPage" />
      </MasterDetailPage.Master>
        <MasterDetailPage.Detail>
            <NavigationPage>
                <x:Arguments>
                    <local:HomePage />
                </x:Arguments>
            </NavigationPage>
        </MasterDetailPage.Detail>
    

    When clicking Dashboard button in homepage.

    Navigation.PushAsync(new Page());
    
  • RJ_11RJ_11 Member ✭✭

    When i push page hamburger icon disappears. but still if i swipe navigation drawer appears but hamburger disappears and back button replaces it.
    Is there any way to keep hamburger button.?

Sign In or Register to comment.