EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

ListViewBase.ScrollIntoView(Object, ScrollIntoViewAlignment) method

Applies to Windows and Windows Phone

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

Syntax


public void ScrollIntoView(
  object item, 
  ScrollIntoViewAlignment alignment
)

Parameters

item

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

The data item to bring into view.

alignment

Type: 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.

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)
MakeVisible

 

 

Mostrar:
© 2014 Microsoft