private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { viewModel.setCurrentRecipe((sender as ListBox).SelectedItem); }