Search code examples
c#windows-phone-8

What the name of type of this Menu


Can anyone tell me what is the name of the style of this menu? (The menu like Facebook app in Windows Phone - not Slide left menu).

I try to search "Slide Menu" but can't find any examples like this.


Solution

  • In Windows Phone this type of control doesn't exist, but you can create it yourself very quickly!

    Just add a grid(the container of the sections' icons) and an empty Pivot Control below. In my case I added the pivot and the pivotItems in the code behind, each section was an user control. If you plan to add pivot and pivotItems in XAML, probably you also need to modify the pivot's header template to make it empty (see here how: How to Change Pivot Header Template in Windows Phone 8)

    Then register for the selectionChanged event of the pivot control and modify the appearance of the grid above accordingly to the current selectedItem.

    So when the user swipe, selectionChanged is fired, inside the event handler get the selectedItem/selectedIndex and highlight the right icon in the icons' grid.

    If something isn't clear feel free to ask, maybe I can provide you also an example