Clancey / FlyoutNavigation

Other
95 stars 87 forks source link

using Flyoutnavigation #13

Closed Cris79 closed 11 years ago

Cris79 commented 11 years ago

hi I have a doubt.. I'm using the new control FlyoutNavigation, its fine, but I dont know ho to use it with differents ViewControls....

I have 5 View controls (vc1, vc2, vc3, ecc) and maincontrol (uiviewcontrol which contain the FlyoutNavigation)

navigation = new FlyoutNavigationController (); navigation.View.Frame = UIScreen.MainScreen.Bounds;

navigation.NavigationRoot = new RootElement ("") { new Section(header) { new MenuStringElement("Menu1"){...}, new MenuStringElement("Menu2"){...}, new MenuStringElement("Menu3"){...}, } };

navigation.ViewControllers = new UIViewController []{ new UINavigationController(new vc1 ()), new UINavigationController(new vc2 ()), new UINavigationController(new vc3 ()),

}

but this is not correct.... have some problem with NavigationController in those UIViewcontrol and others problem.

what is the correct approach for this development? tks!

Clancey commented 11 years ago

Here is the old sample. IT shows it in action a little clearer: https://github.com/Clancey/FlyoutNavigation/blob/0c73a2cdac46b6e1661e4b61173edcfff8210a80/Sample/AppDelegate.cs#L33-L52