ListBox.ScrollIntoView method

Applies to Windows and Windows Phone

Causes the object to scroll into view.

Syntax


public void ScrollIntoView(
  object item
)

Parameters

item

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

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.

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

ListBox

 

 

Show:
© 2014 Microsoft