DomainDataSourceView.MoveCurrentToPosition Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Function MoveCurrentToPosition ( _
    position As Integer _
) As Boolean
'Usage
Dim instance As DomainDataSourceView
Dim position As Integer
Dim returnValue As Boolean

returnValue = instance.MoveCurrentToPosition(position)
public bool MoveCurrentToPosition(
    int position
)
public:
virtual bool MoveCurrentToPosition(
    int position
) sealed
abstract MoveCurrentToPosition : 
        position:int -> bool 
override MoveCurrentToPosition : 
        position:int -> bool 
public final function MoveCurrentToPosition(
    position : int
) : boolean

Parameters

Return Value

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

Implements

ICollectionView.MoveCurrentToPosition(Int32)

See Also

Reference

DomainDataSourceView Class

System.Windows.Controls Namespace

MoveCurrentToPosition