Beispiel #1
0
 public LocalMusicPage()
 {
     this.InitializeComponent();
     this.NavigationCacheMode = NavigationCacheMode.Enabled;
     MediaHelper.SwitchMusicListeners.Add(this);
     LocalPage.MusicListener = this;
     LocalPlaylist.RemoveListeners.Add(this);
     LocalPlaylist.MultiSelectOption = new MultiSelectCommandBarOption()
     {
         ShowRemove = false
     };
     GridMusicView.RemoveListeners.Add(this);
     GridMusicView.MenuFlyoutOpeningOption = new MenuFlyoutOption()
     {
         MultiSelectOption = new MultiSelectCommandBarOption()
         {
             ShowRemove = false
         }
     };
     MusicInfoControl.MusicModifiedListeners.Add((before, after) =>
     {
         if (CurrentTree.FindMusic(before) is Music music)
         {
             music.CopyFrom(after);
             Songs.FirstOrDefault(m => m == before).CopyFrom(after);
         }
     });
 }