Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When setting a NavigationPage as my root page in a Xamarin.Forms.iOS app, the ViewController that is generated by the call to CreateViewController() is not of type UINavigationController.
I would think that on iOS, (NavigationPage).CreateViewController() would generate a ViewController of type UINavigationController.
I have a simple repro case here:
Created attachment 7482 [details]
No, it will still be nested within a parenting ViewController that we use to handle certain events. It will be the ChildViewController of the ViewController you get from CreateViewController.
Duly noted. Thanks.
@Jason Smith how can we get a reference of this ChildViewController?
navigationPage.CreateViewController().ChildViewControllers is an empty array.
for example this code:
var navp = new Xamarin.Forms.NavigationPage ();
UIViewController navc = navp.CreateViewController (). ChildViewControllers;
var nav = (UINavigationController)navc;
raises an index out of range exception because the ChildViewControllers collection is empty
Why this thread is marked as 'RESOLVED INVALID'. I am also facing similar issue, and I posted question related to this in Xamarin forum, but I didn't get any response.
All my Forms pages are wrapped under NavigationPage class, hence all pages has NavigationBar with back button. I have a page created in iOS which I am inserting using dependency injection. Its working fine, but navigation bar is not shown in iOS specific page. Hence its very difficult to navigate back to the previous page.
How to solve this?