Wednesday 25 October 2017

Xamarin Forms MasterDetail Navigation Page Customizable [Tutorial 4]


Step1:Our App.Xaml.cs Will Look Like this:

Step2:Now : Let's create MasterPageItems.cs class inside MenuItems folder:

Step3:Now you can create any Number of View1.Xaml(Pages) For Instance i will take 1:

Step4: 1.You have to create a new MasterDetailPage by adding a new page  and rename it to MainPage.
            2.if  you have previous MainPage then  delete it at first and after that add master detail page  and remove detail page that was created while creating MasterDetailPage.Rename Masterpage to MainPage
**Now Inside MainPage.xaml
Step5:Let us Invoke Some actions Inside Our MainPage.Cs

Step6: Please Note: I have included ViewMain as  random page you can create new page and include it as a main page.
If you like Work please don't forget to give thumps up.
         

5 comments:

  1. Thank you for such a great tutorial, but there is one thing and that is when I select an Item from list view, it does not get un-selected like in your video when you selected fast delivery, the list view item got blue, high lighted and again going back in navigation drawer the blue highlighted color was still there, how to get rid of it ??

    ReplyDelete
  2. Unhandled Exception:

    Xamarin.Forms.Xaml.XamlParseException: Position 29:19. No method OnMenuIte2mSelected found on type MyNavDraw.MainPage occurred

    ReplyDelete
  3. Dear Xamarin Huy,

    Can i get the Source code as zip ?

    ReplyDelete