예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
        }