PagedCollectionView.MoveCurrentTo Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Sets the specified item to be the CurrentItem in the view.
Namespace: System.Windows.Data
Assembly: System.Windows.Data (in System.Windows.Data.dll)
Syntax
'Declaration
Public Function MoveCurrentTo ( _
item As Object _
) As Boolean
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
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.