I'm trying to get the value of a the first column on a selected row that the user double clicks on in a listview found in my WPF application. Unfortunately, I keep getting the following error message:
Any idea how I can fix this? This is my code so far:
private void PlotListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var lvi = (ListViewItem)PlotListView.SelectedItems[0]; MessageBox.Show(lvi.ToString()); }