Skip to content

Instantly share code, notes, and snippets.

@clausjoergensen
Created October 4, 2011 18:02
Show Gist options
  • Save clausjoergensen/1262334 to your computer and use it in GitHub Desktop.
Save clausjoergensen/1262334 to your computer and use it in GitHub Desktop.
// remove
//private void RecipeListBox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
//{
// ViewModel.SelectedRecipe = (Recipe)RecipeListBox.SelectedItem;
//}
// replace with:
private void HubTile_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
var recipe = (sender as HubTile).DataContext as Recipe;
ViewModel.SelectedRecipe = recipe;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment