public override void PressesCancelled(NSSet <UIPress> presses, UIPressesEvent evt) { base.PressesCancelled(presses, evt); foreach (UIPress press in presses) { // Was the Touch Surface clicked? if (press.Type == UIPressType.Select) { SongClicked.Invoke(this, Song); } } }
public override async void PressesBegan(NSSet <UIPress> presses, UIPressesEvent evt) { base.PressesBegan(presses, evt); foreach (UIPress press in presses) { // Was the Touch Surface clicked? if (press.Type == UIPressType.Select) { Animate(.1f, () => { Transform = CGAffineTransform.MakeScale(1F, 1F); }); SongClicked?.Invoke(this, Song); //var x = await MusicService.GetLyricsBySongId(Song.SongId); //System.Console.WriteLine($"Lyrics:{x}"); } } }