public PlayingPage() { InitializeComponent(); BindingContext = new PlayingViewModel(); PreviousButton.Source = ImageSource.FromResource("MusicPlayer.Resources.previousButton.png", typeof(PlayingPage)); NextButton.Source = ImageSource.FromResource("MusicPlayer.Resources.nextButton.png", typeof(PlayingPage)); }
/// <summary> /// Provides a deterministic way to create the Playing property. /// </summary> public static void CreatePlaying() { if (_playingViewModel == null) { _playingViewModel = new PlayingViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the Playing property. /// </summary> public static void ClearPlaying() { //_playingViewModel.Cleanup(); _playingViewModel = null; }