Share via


ListBox.ScrollIntoView(Object) 方法

定義

讓此物件捲動進入檢視。

public:
 virtual void ScrollIntoView(Platform::Object ^ item) = ScrollIntoView;
void ScrollIntoView(IInspectable const& item);
public void ScrollIntoView(object item);
function scrollIntoView(item)
Public Sub ScrollIntoView (item As Object)

參數

item
Object

Platform::Object

IInspectable

要捲動的物件。

備註

ItemsSource 集合的內容變更時,特別是當集合中新增或移除許多專案時,您可能需要先呼叫 UpdateLayout ,再呼叫 ScrollIntoView,讓指定的專案卷動到檢視區。

適用於