Class ListViewCachingStrategy
Specifies caching strategies of data templates when re-using listview items.
Inheritance
System.Object
ListViewCachingStrategy
Namespace: Syncfusion.ListView.XForms
Assembly: Syncfusion.SfListView.XForms.dll
Syntax
public sealed class ListViewCachingStrategy : Enum
Remarks
While scrolling binding contexts of data template object get updated and re-used. The data templates objects that are selected by a Xamarin.Forms.DataTemplateSelector are cached by the data template type and re-used.
Fields
CreateNewTemplate
Indicates that new data templates are created while re-using listview items.
Declaration
public const ListViewCachingStrategy CreateNewTemplate
Field Value
Type |
---|
ListViewCachingStrategy |
RecycleTemplate
Indicates that data templates get re-used while data object associated with listview item gets changed. While scrolling binding contexts of data template object get updated and re-used. The data templates objects that are selected by a Xamarin.Forms.DataTemplateSelector are cached by the data template type and re-used.
Declaration
public const ListViewCachingStrategy RecycleTemplate
Field Value
Type |
---|
ListViewCachingStrategy |