Bug 57586 - Xamarin.UWP Custom ViewCell has problems with the bindings
Summary: Xamarin.UWP Custom ViewCell has problems with the bindings
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-06-19 08:52 UTC by Edward-Cristi Butoiu
Modified: 2017-06-19 09:57 UTC (History)
1 user (show)

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


Attachments
Main Xamarin Forms Project (22.69 KB, application/x-rar)
2017-06-19 08:52 UTC, Edward-Cristi Butoiu
Details
Post Rendering Binding (21.81 KB, image/png)
2017-06-19 08:54 UTC, Edward-Cristi Butoiu
Details
How it looks on Android (34.56 KB, image/png)
2017-06-19 08:54 UTC, Edward-Cristi Butoiu
Details
Thought initially it's Grid's fault, setted Width/Height, no success (26.45 KB, image/png)
2017-06-19 08:55 UTC, Edward-Cristi Butoiu
Details
Android/UWP comparison (44.00 KB, image/png)
2017-06-19 08:55 UTC, Edward-Cristi Butoiu
Details
Xamarin Forms Project (11.62 KB, application/x-rar)
2017-06-19 09:04 UTC, Edward-Cristi Butoiu
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 Edward-Cristi Butoiu 2017-06-19 08:52:58 UTC
Created attachment 22965 [details]
Main Xamarin Forms Project

I've created a custom ViewCell that's supposed to be used in my ListView
The same code works on Android but not on UWP (Windows Phone and Windows desktop alike), on UWP it'll show blank cells, but issusing a debugger on a TappedEvent reveals that the binding is done.

I did use a custom viewcell because I have to generate some dynamic content within a StackLayout embedded within the ViewCell..
I am not entirely sure why is it behaving like this on UWP, gonna give it a test on iOS through Xamarin Player.

The exact Xamarin build is [2.3.4.247]
Comment 1 Edward-Cristi Butoiu 2017-06-19 08:54:14 UTC
Created attachment 22966 [details]
Post Rendering Binding
Comment 2 Edward-Cristi Butoiu 2017-06-19 08:54:34 UTC
Created attachment 22967 [details]
How it looks on Android
Comment 3 Edward-Cristi Butoiu 2017-06-19 08:55:08 UTC
Created attachment 22968 [details]
Thought initially it's Grid's fault, setted Width/Height, no success
Comment 4 Edward-Cristi Butoiu 2017-06-19 08:55:27 UTC
Created attachment 22969 [details]
Android/UWP comparison
Comment 5 Edward-Cristi Butoiu 2017-06-19 09:04:42 UTC
Created attachment 22970 [details]
Xamarin Forms Project
Comment 6 Edward-Cristi Butoiu 2017-06-19 09:57:09 UTC

I was using 
this.BindingContext = this; in my customCell's CTOR..
Removing this line fixed the issue.

Posted the question on Stack Too.
Thanks Zhu

https://stackoverflow.com/questions/44619504/xamarin-uwp-custom-viewcell-has-problems-with-the-bindings