protected override async void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (Service.Current.IsConnected) { DataContext = vm = new Vidyano.ViewModel.Pages.HomePage(this); await vm.Initialize(e.NavigationMode == NavigationMode.Back); } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { if (PhoneApplicationFrameEx.NavigatePendingStateRestore()) return; if (Service.Current.IsConnected) { DataContext = vm = new Vidyano.ViewModel.Pages.HomePage(this); await vm.Initialize(e.NavigationMode == NavigationMode.Back); } base.OnNavigatedTo(e); }