public PlayerModelView(BaseViewModel collect, AudioProperties track) { playPauseImage = new Image { Source = "Play.png" }; // trackPath = collect; PlayCommand = new Command(OnClick); currentTrack = track; pl = new PlayerModel(currentTrack.TrackPath); }
private void ListView_ItemSelected(object sender, ItemTappedEventArgs e) { AudioProperties a = e.Item as AudioProperties; Navigation.PushAsync(new PlayerView(new PlayerModelView(BindingContext as BaseViewModel, a))); }