ListViewBase.ScrollIntoView ListViewBase.ScrollIntoView ListViewBase.ScrollIntoView ListViewBase.ScrollIntoView Method

Definition

Overloads

ScrollIntoView(Object) ScrollIntoView(Object) ScrollIntoView(Object) ScrollIntoView(Object)

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

ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment)

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

ScrollIntoView(Object) ScrollIntoView(Object) ScrollIntoView(Object) ScrollIntoView(Object)

Scrolls the list to bring the specified data item 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 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.

See also

ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment) ScrollIntoView(Object, ScrollIntoViewAlignment)

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

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

Parameters

item
Object Object

The data item to bring into view.

alignment
ScrollIntoViewAlignment ScrollIntoViewAlignment

An enumeration value that specifies whether the item uses Default or Leading alignment.

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.

See also