protected async override void OnNavigatingFrom(NavigatingCancelEventArgs e) { base.OnNavigatingFrom(e); if (activated) { RemoteVideo.Stop(); RemoteVideo.Source = null; } if (device != null) { await device.CleanUpAsync(); device = null; } }