Bug 45229 - ListView first item text is missing, when ListView is embedded into Master-Detail Page
Summary: ListView first item text is missing, when ListView is embedded into Master-De...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-10 10:29 UTC by blitzillu
Modified: 2017-04-29 15:19 UTC (History)
7 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample project demonstrating the issue (118.74 KB, application/zip)
2016-10-10 10:29 UTC, blitzillu
Details
Another sample project showing the bug with the latest XF version (126.85 KB, application/x-zip-compressed)
2017-04-29 01:19 UTC, Fady H. Wahba
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description blitzillu 2016-10-10 10:29:52 UTC
Created attachment 17955 [details]
Sample project demonstrating the issue

Now I needed two days to track this error down. I've use the Master-Detail Page example (https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/master-detail-page/) as base for demonstrating the bug.

Summary:

The first item is not visible in the ListView. Bug occurs on UWP only.

Conditions:

-ListView is used
-ListView is embedded into master page of a Master-Detail template
-Only the first item in the ListView
-Only the text of the first item (i.e. if you use a custom ViewCell)
-It only occurs if you set the following property:  VerticalTextAlignment="Center"

I've included a sample app, which demonstrates the issue. Just build and run to observe the behavior. The error is present if you build on your local machine and also on a device (Lumia 650). The problem doesn't occur on an older version of XF (2.0.0.6482), but here Master-Detail is not working correctly (separate toolbar if you use Master-Detail page and a toolbar).

Here are my version informations:

Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

Visual Basic 2015   00325-60003-97886-AA825
Microsoft Visual Basic 2015

Visual C# 2015   00325-60003-97886-AA825
Microsoft Visual C# 2015

Visual C++ 2015   00325-60003-97886-AA825
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - DEU   00325-60003-97886-AA825
Windows Phone SDK 8.0 - DEU

Application Insights Tools for Visual Studio Package   7.8.00927.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

UWPTileGeneratorCommand Extension   1.0
UWPTileGeneratorCommand Visual Studio Extension Detailed Info

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.2.0.703 (3b7df6f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support   0.5.0.0 (45b35bb)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android   7.0.1.3 (96c7ba6)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.0.1.10 (ad1cd42)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 Wagner 2016-10-11 19:01:56 UTC
Same problem here
Comment 2 Kent Green [MSFT] 2016-11-10 01:21:49 UTC
I was able to reproduce this issue using the sample in the bug  description. Marking this bug as "CONFIRMED"

## Build info
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA851
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA851
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA851
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA851
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   7.11.01104.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.2.0.719 (15694b9)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.1.6 (5a02b03)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.2.0.4 (b638977)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 3 James 2016-11-21 15:54:14 UTC
This is also a problem for ListViews or ObservableCollections in a TabbedPage.
ListViews on page 1 work okay, but first item not shown for listviews on all subsequent pages.

Again only in UWP. Android and iOS okay
Comment 4 blitzillu 2016-11-23 14:26:23 UTC
For me the problem was fixed with XF 2.3.3.166-pre4. Perhaps you could try to update it and see if that solves your issue too.
Comment 5 James 2016-11-23 16:08:35 UTC
Thanks - I thought I was running with the latest but wasn't.
Loaded 2.3.3.168 and all okay
Comment 6 Samantha Houts [MSFT] 2016-12-01 18:51:54 UTC
Closing per comment 4. Thank you!
Comment 7 Fady H. Wahba 2017-04-29 01:19:45 UTC
Created attachment 21897 [details]
Another sample project showing the bug with the latest XF version

This issue is still repro'ing for me with the latest XF version 2.3.4.224.

Using a MasterDetailPage with ListViewItem, where the detail uses a WebView.  Once you click on the text of the webview, the menu item text vanishes.  I've added another sample project "BugRepro.zip" that shows the problem.

Kindly please take a look.  Thanks!
Comment 8 David Ortinau [MSFT] 2017-04-29 15:19:17 UTC
Fady, I confirmed this was an issue in 2.3.4.224. 

I've also confirmed this is fixed in 2.3.5.235-pre2, our current pre-release. I used your repro project (thanks) and updated to this version.