ItemsUpdatingScrollMode 列舉

定義

定義常數,指定更新時專案的捲動行為。

public enum class ItemsUpdatingScrollMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class ItemsUpdatingScrollMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum ItemsUpdatingScrollMode
Public Enum ItemsUpdatingScrollMode
繼承
ItemsUpdatingScrollMode
屬性

欄位

KeepItemsInView 0

調整卷動位移,以在專案新增至 ItemsSource 時,保留檢視區中的第一個可見專案。

KeepLastItemInView 2

調整卷動位移,以在專案新增至 ItemsSource 時,保留檢視區中最後一個可見的專案。

KeepScrollOffset 1

維護相對於清單開頭的捲動位移,強制檢視區中的專案在專案新增至 ItemsSource 時向下移動。

備註

如需詳細資訊 ,請參閱 ItemsStackPanel.ItemsUpdatingScrollMode

適用於

另請參閱