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.
On UWP using 22.214.171.124, when pushing a page onto the navigation stack, where that page sets Title in OnAppearing rather than in the page constructor, the page appears without a Title, and on desktop without a toolbar.
If another page is pushed on top, and then popped again, the first page (that didn't initially show a Title and possibly toolbar) now does.
It appears that a workaround is simply to set Title to a dummy value in the page constructor and leave all other code as is.
Not sure whether this is related to Bug 51142. It may be, but there isn't enough information on 51142 to be sure either way.
This is also a problem on WinRT using 126.96.36.199
sounds legit. please provide a simple repro project
Just push the following page onto the navigation stack. On UWP, no title is not displayed. Uncomment the Title in the constructor and then the one in OnAppearing is displayed. The one in OnAppearing should be displayed regardless of whether one was set in the constructor.
public class Bug51412PageView : ContentPage
// If the following line is commented out, the Title in OnAppearing is not displayed.
//this.Title = "ConstructorTitle";
protected override void OnAppearing()
this.Title = "OnAppearingTitle";
this.BackgroundColor = Color.White;
} // public class Bug51412PageView : ContentPage
} // namespace ViewsUsingXamarinForms
Sorry, that should have said "no title is displayed" rather than "no title is not displayed"
I haven't yet worked out precisely under what circumstances a toolbar is not displayed. I'm hoping that finding the cause of the title not being displayed will also identify when the toolbar is not displayed.
Created attachment 20230 [details]
I was able to reproduce this issue with the project I am attaching when using Forms 188.8.131.52. However I tested with Forms 2.3.4-pre2 and the issue seems to be resolved.
It appears to have been fixed with this commit: https://github.com/xamarin/Xamarin.Forms/commit/9572c0f7a7f8c49175853432fe7b61b431e450a1
The Title _is_ set correctly (verified with the Live Visual Tree tool in VS) however the entire title area was not visible due to the the Title being initially null.