ListBox.ScrollIntoView(Object) ListBox.ScrollIntoView(Object) ListBox.ScrollIntoView(Object) ListBox.ScrollIntoView(Object) Method

Definition

Causes the object to scroll into view.

public : void ScrollIntoView(Platform::Object item)
void ScrollIntoView(winrt::Windows::Foundation::IInspectable item) const;
public void ScrollIntoView(Object item)
Public Sub ScrollIntoView(item As Object)

Parameters

item
Object Object

The object to scroll to.

Remarks

When the contents of the ItemsSource collection changes, particularly if many items are added to or removed from the collection, you might need to call UpdateLayout prior to calling ScrollIntoView for the specified item to scroll into the viewport.