/// <summary> /// Delete model from scene /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnDeleteModelFromScene_Click(object sender, RoutedEventArgs e) { myScene.DeleteElement((string)lvScene.SelectedItem); lvScene.ItemsSource = myScene.Names; lvScene.Items.Refresh(); btnDeleteModelFromScene.IsEnabled = false; }