Share via


ListView.SelectedItem Property

Definition

Gets or sets the currently selected item from the ItemsSource.

public:
 property System::Object ^ SelectedItem { System::Object ^ get(); void set(System::Object ^ value); };
public object SelectedItem { get; set; }
member this.SelectedItem : obj with get, set
Public Property SelectedItem As Object

Property Value

The selected item or null if no item is selected.

Applies to