protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { _playlistVm.Reset(); _playlistVm = null; this.Loaded -= OnPageLoaded; //fileBox.ItemsSource = null; }
protected override void OnNavigatedFrom(NavigationEventArgs e) { Window.Current.SizeChanged -= Current_SizeChanged; _playlistVm.Reset(); _playlistVm = null; fileBox.ItemsSource = null; base.OnNavigatedFrom(e); }
protected override void OnNavigatedFrom(NavigationEventArgs e) { _playlistVm.Songs.Clear(); _playlistVm.Reset(); _playlistVm = null; GC.Collect(); base.OnNavigatedFrom(e); }