Class CachingStrategy
Specifies caching strategies of data templates when re-using listview items.
Inheritance
System.Object
CachingStrategy
Namespace: Syncfusion.Maui.ListView
Assembly: Syncfusion.Maui.ListView.dll
Syntax
public sealed class CachingStrategy : Enum
Remarks
While scrolling binding contexts of data template object get updated and re-used. The data templates objects that are selected by a Microsoft.Maui.Controls.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 CachingStrategy CreateNewTemplate
Field Value
Type |
---|
CachingStrategy |
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 Microsoft.Maui.Controls.DataTemplateSelector are cached by the data template type and re-used.
Declaration
public const CachingStrategy RecycleTemplate
Field Value
Type |
---|
CachingStrategy |