示例#1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            NavigationServices.CurrentViewModel = null;
            await TheBobberModel.LoadItems(NetworkInterface.GetIsNetworkAvailable());

            DataContext = this;
        }
示例#2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);
            NavigationServices.CurrentViewModel = null;
            await TheBobberModel.LoadItems(NetworkInterface.GetIsNetworkAvailable());

            DataContext = this;
        }