ItemCollection.CurrentItem Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the current item in the view.

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

public override object CurrentItem { get; }

Property Value

Type: System.Object

The current object in the view or null if the collection is uninitialized or if there is no collection in the ItemsSource mode.

By default, the first item of the collection starts as the current item.

.NET Framework
Available since 3.0
Return to top