private void GamesList_LeftButtonDown(object sender, RoutedEventArgs e) { var item = sender as System.Windows.Controls.ListViewItem; if (item != null && item.IsSelected) { GameListEntry entry = (GameListEntry)item.Content; ShowGameDetails(entry.Slug); } }
private void GamesList_RightButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { var item = sender as System.Windows.Controls.ListViewItem; if (item != null && item.IsSelected) { GameListEntry entry = (GameListEntry)item.Content; ShowGameContextMenu(entry.Slug, sender as UIElement); } }