Expand Minimize

ListViewBase.ScrollIntoView(Object) method

Applies to Windows and Windows Phone

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

Syntax


public:
void ScrollIntoView(
  Object^ item
)

Parameters

item

Type: System.Object [.NET] | Platform::Object [C++]

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ListViewBase
ScrollIntoView(Object, ScrollIntoViewAlignment)
MakeVisible

 

 

Show:
© 2014 Microsoft. All rights reserved.