DomainDataSourceView.CurrentPosition Property

[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.]

Gets the ordinal position of the CurrentItem in the view.

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

Syntax

'Declaration
Public ReadOnly Property CurrentPosition As Integer
    Get
'Usage
Dim instance As DomainDataSourceView
Dim value As Integer

value = instance.CurrentPosition
public int CurrentPosition { get; }
public:
virtual property int CurrentPosition {
    int get () sealed;
}
abstract CurrentPosition : int
override CurrentPosition : int
final function get CurrentPosition () : int

Property Value

Type: System.Int32
The ordinal position of the CurrentItem in the view or -1 if there is no current item.

Implements

ICollectionView.CurrentPosition

See Also

Reference

DomainDataSourceView Class

System.Windows.Controls Namespace

CurrentPosition