Using SlideOut Navigation in MonoCross iOS App

Dillon Buchanan has a great example for creating left-side navigation in MonoTouch.

My problem is that I am using MonoCross and cannot figure out how to implement this. Below is a snippet from Dillon against my implementation of FinishedLaunching .

Dillon:

 public override bool FinishedLaunching (UIApplication app, NSDictionary options) { window = new UIWindow (UIScreen.MainScreen.Bounds); Menu = new SlideoutNavigationController(); Menu.TopView = new HomeViewController(); Menu.MenuView = new DummyController(); window.RootViewController = Menu; window.MakeKeyAndVisible (); return true; } 

Mine

 public override bool FinishedLaunching (UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds); MXTouchContainer.Initialize(new eDash.App(), this, window); // Add Views MXTouchContainer.AddView<List<Location>>(typeof(LocationListView), ViewPerspective.Default); MXTouchContainer.AddView<Location>(typeof(LocationView), ViewPerspective.Default); MXTouchContainer.AddView<List<Engagements>>(typeof(EngagementsListView), ViewPerspective.Default); MXTouchContainer.Navigate(null, MXContainer.Instance.App.NavigateOnLoad); UIDevice.CurrentDevice.BeginGeneratingDeviceOrientationNotifications(); UINavigationBar.Appearance.TintColor =UIColor.Black; return true; } 
+4
source share

Source: https://habr.com/ru/post/1445861/


All Articles