Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

MasterDetailView: How does the menu icon (hamburger) appear?

$
0
0

I've built and run the MasterDetailPage sample on github, and it works.

However, I don't understand how the "hamburger" menu icon that appears when the ContactsList, TodoList and Reminders pages are displayed, is created.

There seems to be a bit of voodoo here.

In particular, this sample does not have a UWP version, so I went ahead and created a Xamarin.Forms UWP project and hooked it up to the Portable Library project as described here.

This also works, and the hamburger menu appears, even though I did not add any icon assets to the UWP project, and there are no icon assets in the Portable Library.

There is a line that reads

Icon = "hamburger.png";

in MasterPageCS.cs and MasterPage.xaml. However, deleting them does not make any difference.

So I'm stumped - how does the hamburger icon get created?

I've tried following this sample in my own app, and the hamburger icon does not appear.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>