Share via


ItemsView.ItemsUpdatingScrollMode Property

Definition

Gets or sets the scroll behavior when items are added, removed, or updated in the collection.

public:
 property Microsoft::Maui::Controls::ItemsUpdatingScrollMode ItemsUpdatingScrollMode { Microsoft::Maui::Controls::ItemsUpdatingScrollMode get(); void set(Microsoft::Maui::Controls::ItemsUpdatingScrollMode value); };
public Microsoft.Maui.Controls.ItemsUpdatingScrollMode ItemsUpdatingScrollMode { get; set; }
member this.ItemsUpdatingScrollMode : Microsoft.Maui.Controls.ItemsUpdatingScrollMode with get, set
Public Property ItemsUpdatingScrollMode As ItemsUpdatingScrollMode

Property Value

An ItemsUpdatingScrollMode value. The default is KeepItemsInView.

Remarks

This property controls how the view maintains its scroll position when the ItemsSource changes. Use KeepLastItemInView for chat-like interfaces where new items are added at the end.

Applies to