ListView ListView Constructors

Definition

Overloads

ListView()

Creates and initializes a new instance of the ListView class.

ListView(ListViewCachingStrategy) ListView(ListViewCachingStrategy)

Creates and initializes a new instance of the ListView class, with the specified caching strategy.

ListView()

Creates and initializes a new instance of the ListView class.

public ListView ();

ListView(ListViewCachingStrategy) ListView(ListViewCachingStrategy)

Creates and initializes a new instance of the ListView class, with the specified caching strategy.

public ListView (Xamarin.Forms.ListViewCachingStrategy cachingStrategy);
new Xamarin.Forms.ListView : Xamarin.Forms.ListViewCachingStrategy -> Xamarin.Forms.ListView

Parameters

cachingStrategy
ListViewCachingStrategy ListViewCachingStrategy

A value that indicates how the List View should manage memory when displaying data items using a data template.

Remarks

For memory and performance reasons, application developers should strongly prefer RecycleElement, when possible. See ListViewCachingStrategy for more details.

When developers specify RecycleElement, OnElementChanged events are not raised when cells are recycled. Instead, the cell is retained and its property values change when the binding context is updated to that of an available cell, OnElementPropertyChanged events are raised. Application developers should remember to listen for the correct events, and should note that their renderers will need to be updated if the default behavior changes to RecycleElement in a future release.

Applies to