Export (0) Print
Expand All

PagedCollectionView.MoveCurrentTo Method

Silverlight

Sets the specified item to be the CurrentItem in the view.

Namespace:  System.Windows.Data
Assembly:  System.Windows.Data (in System.Windows.Data.dll)

public bool MoveCurrentTo(
	Object item
)

Parameters

item
Type: System.Object
The item to set as the CurrentItem.

Return Value

Type: System.Boolean
true if the resulting CurrentItem is an item in the view; otherwise, false.

Implements

ICollectionView.MoveCurrentTo(Object)

If the specified item is not found, the method returns false and the CurrentItem is positioned before the start of the collection in the view.

Collection views support the concept of a current record pointer. As you navigate through the objects in a collection view, you are moving a record pointer that enables you to retrieve the object that exists at that particular location in the collection.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft