Skip to content

xamarin/FlyOutNavigation

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 111 commits behind Clancey:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

The FlyOutNavigationController presents a simple navigation view that appears to slide out from underneath a main view, allowing you to navigate among a list of view controllers. The same view also functions as a UISplitViewController on the iPad.

using FlyOutNavigation;
using MonoTouch.Dialog;
...
public override void ViewDidLoad ()
{
	base.ViewDidLoad ();
	var navigation = new FlyOutNavigationController {
		// Create the navigation menu
		NavigationRoot = new RootElement ("Navigation") {
			new Section ("Pages") {
				new StringElement ("Animals"),
				new StringElement ("Vegetables"),
				new StringElement ("Minerals"),
			}
		},
		// Supply view controllers corresponding to menu items:
		ViewControllers = new [] {
			new UIViewController { View = new UILabel { Text = "Animals (drag right)" } },
			new UIViewController { View = new UILabel { Text = "Vegetables (drag right)" } },
			new UIViewController { View = new UILabel { Text = "Minerals (drag right)" } },
		},
	};
	// Show the navigation view
	navigation.ToggleMenu ();
	View.AddSubview (navigation.View);
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%