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.
Created attachment 16047 [details]
On Android and iOS it works correct. Only on UWP
Works in 22.214.171.12490
Works in 126.96.36.19905
Doesn't work in 188.8.131.52
Doesn't work in 184.108.40.206-pre1
Doesn't work in 220.127.116.11-pre2
Parameter for CreateDefault should be the currentItem not currentItem.ToString()
The importance level should be revised. Because this bug completely prevent override CreateDefault method and customize the behavior of list. And it was not exist on previous versions, produced by new version.
This will be looked at as it is a regression.
Should be fixed in 2.3.2-pre1. Thanks!
I have checked this issue with Xamarin.Forms 18.104.22.168-pre1 and I am still facing same issue.
This issue is working fine with X.F 22.214.171.12405.
Hence reopened this issue.
My reported bug is fixed but the BindingContext(DataContext) for the Label(TextBox) isn't applied correct. It is the ViewCell not my ViewModel.
This is a different behavior then on iOS and Android.
@Pascal It looks like your sample will work as expected if you uncomment the line you've added to set the BindingContext to the item.
templateCell.BindingContext = item;
@Samantha, i know if i use "templateCell.BindingContext = item" that it works but there are still two reasons why this is a bug.
In the documentation for ListView.CreateDefault it is said that the BindingContext will be set automatically.
See in the Remarks: https://developer.xamarin.com/api/member/Xamarin.Forms.ListView.CreateDefault/p/System.Object/
This doesn't happen for UWP and that is the second reason as it is a different behavior then on iOS and Android.
Setting the BindingContext in CreateDefault can only be temporary fix.
@Pascal You're right! I think I see where the problem is. Thank you!
Should be fixed in 2.3.2-pre2
I have checked this issue with Xamarin.Forms 126.96.36.199 and its working fine.
Hence closing this issue.