ListBox.ScrollIntoView(Object) Method

Definition

Causes the object to scroll into view.

C#
public void ScrollIntoView(object item);

Parameters

item
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.

Applies to

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6