void DidUpdateSongQueue(object sender, EventArgs e) { var indexSet = new NSIndexSet(0); cachedSongQueue = ((SongManager)sender).SongQueue; DispatchQueue.MainQueue.DispatchAsync(() => { SongTableView.ReloadSections(indexSet, UITableViewRowAnimation.Fade); UpdateAlbumViewWithSong(null); SelectFirstRow(); }); }
void SelectFirstRow() { var rowToSelect = NSIndexPath.FromItemSection(0, 0); SongTableView.SelectRow(rowToSelect, false, UITableViewScrollPosition.None); }