Xamarin.forms: TitleView doesn't display when specified on NavigationPage itself

Created on 3 Nov 2018  路  5Comments  路  Source: xamarin/Xamarin.Forms

Description

I have defined NavBar in MasterDetailPage
image

With UWP and version XF 3.3.0.912540 didn't work right align but NavBar was visible
image

After update to 3.3.0.967583 I can't see NavBar
image

On Android it same with both version XF, I can't see NavBar when it defined in MasterDetailPage.

titleview 4 help wanted inactive bug up-for-grabs

Most helpful comment

@wincotv The scenario here is a bit unfortunate

When titleview was first implemented you could specify the titleview on the navigation page itself but that only worked on UWP. Then when I took it over and did my set of changes I removed that ability on UWP without realizing it because the other platforms didn't let you do that so I didn't notice anything had changed. I realize I regressed UWP but right now it's consistent between the three platforms which is more ideal.

I'm going to move this issue to an enhancement for TitleView to allow specifying it on the NavigationPage itself so that it works on all three platforms

All 5 comments

@wincotv if you define the titleview inside the currently navigated to page does it show up how you'd expect it to?

@PureWeen , yes now work also for UWP if I have defined TitleView in Page or in code , with ok right align, but resize form on UWP don't refresh navbar.
image
image

But when I define NavBar for DetailPage in Xaml or Code that isn't work. In prev. version for UWP that was worked, for Android was not worked.
I had this code where navPage was assigned to Detail in MasterDetailPage
image

@wincotv The scenario here is a bit unfortunate

When titleview was first implemented you could specify the titleview on the navigation page itself but that only worked on UWP. Then when I took it over and did my set of changes I removed that ability on UWP without realizing it because the other platforms didn't let you do that so I didn't notice anything had changed. I realize I regressed UWP but right now it's consistent between the three platforms which is more ideal.

I'm going to move this issue to an enhancement for TitleView to allow specifying it on the NavigationPage itself so that it works on all three platforms

@PureWeen this works when defined on the navigation page directly but there is 2nd problem when navigating away from mainpage on masterdetail and returning back causes titleview to disappear.

First time in Xamarin today and I just spent an hour trying to figure out why my titleview wasn't working. Is this an easy issue to fix?

Was this page helpful?
0 / 5 - 0 ratings