We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Property binding does a Get twice for each property

Could not figure out why things were taking so long so put Console.WriteLine(s) to show what is happening (so you can see it.

When I set the ItemsSource I get:

[DOTNET] Set full name to Dan O'Rourke

[DOTNET] Set full name to Kelly Sutherland

[DOTNET] Set full name to Julien Fournier

[DOTNET] Set full name to Libor Suchanek


Then as it handles the Bindings I get:

[DOTNET] Get full name to Dan O'Rourke

[DOTNET] Get full name to Dan O'Rourke

[DOTNET] Get full name to Kelly Sutherland

[DOTNET] Get full name to Kelly Sutherland

[DOTNET] Get full name to Julien Fournier

[DOTNET] Get full name to Julien Fournier

[DOTNET] Get full name to Libor Suchanek

[DOTNET] Get full name to Libor Suchanek

While a user might not notice if the list is not too long this is a definite problem.


1 Reply

SY Suthi Yuvaraj Syncfusion Team October 10, 2022 02:40 PM UTC

Hi Lloyd


We have checked the reported scenario “Property binding does a Get twice for each property” we are unable to reproduce the issue at our end. The property binding it prints the console.writeline only once on loading and prints on scrolling, working fine. We have attached the tested sample for your reference.


Also please share the below details or modify the sample to reproduce issue, which will be more helpful for us to find the solution as soon as possible.


  1. .NET MAUI Framework version
  2. Visual Studio version which you have used
  3. Syncfusion SfListView version
  4. Code snippet related to SfListView setting
  5. Code snippet related to data population


Regards,

Suthi Yuvaraj.


Attachment: ListViewMaui_e8303747.zip

Loader.
Live Chat Icon For mobile
Up arrow icon