private void DoubleClickHandler(object sender, MouseButtonEventArgs e) { ListBox tempListBox = (ListBox)sender; tempPersoon = (Persoon)tempListBox.SelectedItem; positionInlist = personenList.IndexOf(tempPersoon); PersoonDetails tempDetails = new PersoonDetails(this); tempDetails.Show(); }