protected override void OnNavigatedFrom(NavigationEventArgs e) { base.OnNavigatedFrom(e); var vm = DataContext as VideoPlayerViewModel; if (vm != null) { vm.VideoStream = null; } ThePlayer.Dispose(); HlsPlayer.Dispose(); }