{"action":"created","issue":{"url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/17","labels_url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/17/comments","events_url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/17/events","html_url":"https://github.com/Clancey/FlyoutNavigation/issues/17","id":12989503,"number":17,"title":"FlyoutNavigationController is not a UINavigationController","user":{"login":"jonathanpeppers","id":840039,"avatar_url":"https://avatars.githubusercontent.com/u/840039?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanpeppers","html_url":"https://github.com/jonathanpeppers","followers_url":"https://api.github.com/users/jonathanpeppers/followers","following_url":"https://api.github.com/users/jonathanpeppers/following{/other_user}","gists_url":"https://api.github.com/users/jonathanpeppers/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanpeppers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanpeppers/subscriptions","organizations_url":"https://api.github.com/users/jonathanpeppers/orgs","repos_url":"https://api.github.com/users/jonathanpeppers/repos","events_url":"https://api.github.com/users/jonathanpeppers/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanpeppers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2013-04-09T20:04:57Z","updated_at":"2015-07-17T03:06:22Z","closed_at":null,"body":"Let's say you have a menu item in the left that has nested items, such as:\r\n\r\n           flyout.NavigationRoot = new RootElement(string.Empty)\r\n            {\r\n                new Section()\r\n                {\r\n                    new ImageStringElement(\"Book\", NavigateToBook, Theme.PanelIconBook),\r\n                    new ImageStringElement(\"Activities\", NavigateToActivities, Theme.PanelIconActivity),\r\n                    new ImageStringElement(\"Notes\", NavigateToNotes, Theme.PanelIconPencil),\r\n                    new ImageStringElement(\"Bookmarks\", NavigateToBookmarks, Theme.PanelIconBookmark),\r\n                    new ImageStringElement(\"Presentations\", NavigateToPresentations, Theme.PanelIconPresentation),\r\n                    new RootElement(\"Settings\")\r\n                    {\r\n                        new Section()\r\n                        {\r\n                            new StringElement(\"Change Password\"),\r\n                            new StringElement(\"Log Out\"),\r\n                        }\r\n                    },\r\n                },\r\n            };\r\n\r\nThe bottom \"Settings\" item appears modally because MonoTouch.Dialog can't find a valid NavigationController to push to. This isn't proper iOS navigation for nesting elements, it looks kind of strange.\r\n\r\nMaking FlyoutNavigationController a UINavigationController might be a way to support this, but I'll leave the implementation details up to you."},"comment":{"url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/comments/122156842","html_url":"https://github.com/Clancey/FlyoutNavigation/issues/17#issuecomment-122156842","issue_url":"https://api.github.com/repos/Clancey/FlyoutNavigation/issues/17","id":122156842,"user":{"login":"harshtheone22","id":13374519,"avatar_url":"https://avatars.githubusercontent.com/u/13374519?v=3","gravatar_id":"","url":"https://api.github.com/users/harshtheone22","html_url":"https://github.com/harshtheone22","followers_url":"https://api.github.com/users/harshtheone22/followers","following_url":"https://api.github.com/users/harshtheone22/following{/other_user}","gists_url":"https://api.github.com/users/harshtheone22/gists{/gist_id}","starred_url":"https://api.github.com/users/harshtheone22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshtheone22/subscriptions","organizations_url":"https://api.github.com/users/harshtheone22/orgs","repos_url":"https://api.github.com/users/harshtheone22/repos","events_url":"https://api.github.com/users/harshtheone22/events{/privacy}","received_events_url":"https://api.github.com/users/harshtheone22/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T03:06:22Z","updated_at":"2015-07-17T03:06:22Z","body":"var frame = mainView.Frame;  This code throws nullReferanceException Error while i run the solution. \r\nMy flyout menu had the same problem, when i clicks on menu button once after login! it doesn't allow me to navigate.  I have used your given code above. but now its throws \"nullReferanceException\".\r\n\r\n#73 FlyoutNavigationController.cs  File\r\n\r\npublic override void ViewWillAppear(bool animated)\r\n\t\t{\r\n\t\t\tCGRect navFrame = navigation.View.Frame;\r\n\t\t\tnavFrame.Width = menuWidth;\r\n\t\t\tif (Position == FlyOutNavigationPosition.Right)\r\n\t\t\t\tnavFrame.X = mainView.Frame.Width - menuWidth;\r\n\t\t\tnavFrame.Location = CGPoint.Empty;\r\n\t\t\tnavigation.View.Frame = navFrame;\r\n\t\t\tView.BackgroundColor = NavigationTableView.BackgroundColor;\r\n\r\n\t\t\tvar frame = mainView.Frame;\r\n\r\n\t\t\tsetViewSize ();\r\n\t\t\tSetLocation (frame);\r\n\t\t\tnavigation.OnSelection += NavigationItemSelected;\r\n\t\t\tbase.ViewWillAppear(animated);\r\n\t\t} \r\n\r\n\r\n\r\nMainController.cs  File\r\n\r\npublic override void ViewDidLoad ()\r\n\t\t{\r\n\t\t\tbase.ViewDidLoad ();\r\n\r\n\t\t\t// Create the flyout view controller, make it large,\r\n\t\t\t// and add it as a subview:\r\n\t\t\tnavigation = new FlyoutNavigationController ();\r\n\t\t\tnavigation.Position = FlyOutNavigationPosition.Left;\r\n\t\t\tnavigation.View.Frame = UIScreen.MainScreen.Bounds;\r\n\t\t\tView.AddSubview (navigation.View);\r\n\t\t\tthis.AddChildViewController (navigation);\r\n\r\n\r\n\t\t\tnavigation = new FlyoutNavigationController {\r\n\t\t\t\tNavigationRoot = new RootElement (\"Access\") {\r\n\t\t\t\t\tnew Section (\"Pages\") {\r\n\t\t\t\t\t\tnew StringElement (\"Login\"),\r\n\t\t\t\t\t\tnew StringElement (\"Home Page\"),\r\n\t\t\t\t\t\tnew StringElement (\"Search\"),\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t//Supply viewcontroller\r\n\t\t\t\tViewControllers = new [] {\r\n\t\t\t\t\tnew UINavigationController (new MyStoryboardViewController ()),\r\n\t\t\t\t\tnew UINavigationController (new HomePageViewController ()),\r\n\t\t\t\t\tnew UINavigationController (new SearchPageViewController ()),\r\n\t\t\t\t},\r\n\r\n\r\n\t\t\t};\r\n\r\n\r\nWhat should be the changes ??"}}