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.
I apologize if I am completely misunderstanding/overlooking something here, but it appears that NavigationPage cannot be created with default Xaml markup. It has a constructor that is expecting a root page. It is not possible to define this in Xaml without using a markup extension.
It would be ideal to have a [ContentProperty( "Root" )] set on the NavigationPage type, along with a Root property that works with the PushPage method to set the root of the NavigationPage. Or another mechanism that would allow to define a NavigationPage without having to use a markup extension. :)
Please let me know if there are any questions about this. And again I apologize if I have totally misunderstood something!
Hi Michael, most usecases NavigationPage is just a wrapper for other pages, but you can create it using Xaml 2009 features that Xamarin Forms supports, check this example:
<?xml version="1.0" encoding="UTF-8" ?>
<StackLayout x:Name="layout" Orientation="Vertical" VerticalOptions="Start" HorizontalOptions="Center">