void games_GameLoadingComplete(object sender, GameLoadingEventArgs e) { // Fire Event on UI Thread Application.Current.RootVisual.Dispatcher.BeginInvoke(() => { // Clear the list theGames.Clear(); // Add the new games foreach (Game g in e.Results) theGames.Add(g); if (LoadComplete != null) LoadComplete(this, null); }); }
void games_GameLoadingComplete(object sender, GameLoadingEventArgs e) { // Fire Event on UI Thread Application.Current.RootVisual.Dispatcher.BeginInvoke(() => { // Clear the list theGames.Clear(); // Add the new games foreach (Game g in e.Results) { theGames.Add(g); } if (LoadComplete != null) { LoadComplete(this, null); } }); }