StackOverflowException in UWP
Opened this issue · 4 comments
- Add UWP (Fall Creators Update) with Xamarin.Forms (latest) to the solution
- Run demo
- Clicking on any item within the list fails with SOE:
System.Private.CoreLib.dll!System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.IndexOf<object>(object item) Xamarin.Forms.Platform.UAP.dll!Xamarin.Forms.Platform.UWP.ListViewRenderer.OnListItemClicked(object sender, Windows.UI.Xaml.Controls.ItemClickEventArgs e)
This demo will not work for UWP as is because two-way databinding is not supported by Realm on UWP. The reason is that property changes must happen within a transaction and the TypeDelegator magic that allows us to create implicit transactions is only available in .NET Standard 2.0.
UWP supports .NET Standard 2.0 starting from 10.0.16299
Am I missing something?
UWP supports it, yes, but the PR to upgrade the Realm DataBinding assembly to 2.0 hasn't been merged yet: realm/realm-dotnet#1567
Any updates on this issue?