コード例 #1
0
 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));
 }
コード例 #2
0
 /// <summary>
 /// Provides a deterministic way to create the Playing property.
 /// </summary>
 public static void CreatePlaying()
 {
     if (_playingViewModel == null)
     {
         _playingViewModel = new PlayingViewModel();
     }
 }
コード例 #3
0
 /// <summary>
 /// Provides a deterministic way to delete the Playing property.
 /// </summary>
 public static void ClearPlaying()
 {
     //_playingViewModel.Cleanup();
     _playingViewModel = null;
 }