├── iOS ├── Assets.xcassets │ ├── Contents.json │ └── AppIcons.appiconset │ │ └── Contents.json ├── packages.config ├── Entitlements.plist ├── Main.cs ├── AppDelegate.cs ├── LaunchScreen.storyboard ├── Info.plist └── HamburgerMenuExample.iOS.csproj ├── Droid ├── Resources │ ├── drawable │ │ └── icon.png │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-xhdpi │ │ └── icon.png │ ├── drawable-xxhdpi │ │ └── icon.png │ ├── layout │ │ ├── Toolbar.axml │ │ └── Tabbar.axml │ ├── values │ │ └── styles.xml │ └── AboutResources.txt ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── packages.config ├── Assets │ └── AboutAssets.txt ├── MainActivity.cs └── HamburgerMenuExample.Droid.csproj ├── packages.config ├── Views ├── RootPage.cs ├── HomePage.xaml.cs ├── RootPage.xaml ├── SecondPage.xaml.cs ├── MenuPage.xaml.cs ├── HomePage.xaml ├── SecondPage.xaml └── MenuPage.xaml ├── App.xaml ├── .gitignore ├── ViewModels └── MenuPageViewModel.cs ├── Properties └── AssemblyInfo.cs ├── App.xaml.cs ├── HamburgerMenuExample.sln └── HamburgerMenuExample.csproj /iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Droid/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twolfprogrammer/Xamarin.Forms-Hamburger-Menu-Example/HEAD/Droid/Resources/drawable/icon.png -------------------------------------------------------------------------------- /Droid/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twolfprogrammer/Xamarin.Forms-Hamburger-Menu-Example/HEAD/Droid/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /Droid/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twolfprogrammer/Xamarin.Forms-Hamburger-Menu-Example/HEAD/Droid/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /Droid/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twolfprogrammer/Xamarin.Forms-Hamburger-Menu-Example/HEAD/Droid/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /iOS/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Views/RootPage.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace HamburgerMenuExample { 4 | public partial class RootPage : MasterDetailPage { 5 | public RootPage() { 6 | InitializeComponent(); 7 | MasterBehavior = MasterBehavior.Popover; 8 | } 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Views/HomePage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | using Xamarin.Forms; 5 | 6 | namespace HamburgerMenuExample { 7 | public partial class HomePage : ContentPage { 8 | public HomePage() { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Views/RootPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Views/SecondPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | using Xamarin.Forms; 5 | 6 | namespace HamburgerMenuExample { 7 | public partial class SecondPage : ContentPage { 8 | public SecondPage() { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /App.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Views/MenuPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | using Xamarin.Forms; 5 | 6 | namespace HamburgerMenuExample { 7 | public partial class MenuPage : ContentPage { 8 | public MenuPage() { 9 | BindingContext = new MenuPageViewModel(); 10 | Title = "Menu"; 11 | InitializeComponent(); 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Views/HomePage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /Views/SecondPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /Droid/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Droid/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Droid/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace HamburgerMenuExample.iOS { 9 | public class Application { 10 | // This is the main entry point of the application. 11 | static void Main(string[] args) { 12 | // if you want to use a different Application Delegate class from "AppDelegate" 13 | // you can specify it here. 14 | UIApplication.Main(args, null, "AppDelegate"); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace HamburgerMenuExample.iOS { 9 | [Register("AppDelegate")] 10 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate { 11 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) { 12 | global::Xamarin.Forms.Forms.Init(); 13 | 14 | LoadApplication(new App()); 15 | 16 | return base.FinishedLaunching(app, options); 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #Autosave files 2 | *~ 3 | 4 | #build 5 | [Oo]bj/ 6 | [Bb]in/ 7 | packages/ 8 | TestResults/ 9 | 10 | # globs 11 | Makefile.in 12 | *.DS_Store 13 | *.sln.cache 14 | *.suo 15 | *.cache 16 | *.pidb 17 | *.userprefs 18 | *.usertasks 19 | config.log 20 | config.make 21 | config.status 22 | aclocal.m4 23 | install-sh 24 | autom4te.cache/ 25 | *.user 26 | *.tar.gz 27 | tarballs/ 28 | test-results/ 29 | Thumbs.db 30 | 31 | #Mac bundle stuff 32 | *.dmg 33 | *.app 34 | 35 | #resharper 36 | *_Resharper.* 37 | *.Resharper 38 | 39 | #dotCover 40 | *.dotCover 41 | -------------------------------------------------------------------------------- /Views/MenuPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |