Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.35 KB

listviewbase_scrollintoview_376937206.md

File metadata and controls

27 lines (19 loc) · 1.35 KB
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.ListViewBase.ScrollIntoView(System.Object)
winrt method

Microsoft.UI.Xaml.Controls.ListViewBase.ScrollIntoView

-description

Scrolls the list to bring the specified data item into view.

-parameters

-param item

The data item to bring into view.

-remarks

You use the ScrollIntoView method to bring an item into view when the ListViewBase control is not used as a view in a SemanticZoom control. To bring an item into view when the ListViewBase control is used in a SemanticZoom, use the MakeVisible method instead.

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.

-examples

-see-also

ScrollIntoView(Object, ScrollIntoViewAlignment), MakeVisible