protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            await LetsTalkWaterModel.LoadItemsAsync();

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

            _navigationHelper.OnNavigatedTo(e);
            await LetsTalkWaterModel.LoadItemsAsync();
        }
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);

            if (LetsTalkWaterModel != null)
            {
                await LetsTalkWaterModel.LoadItemsAsync();

                if (e.NavigationMode != NavigationMode.Back)
                {
                    LetsTalkWaterModel.SelectItem(e.Parameter);
                }

                LetsTalkWaterModel.ViewType = ViewTypes.Detail;
            }
            DataContext = this;
        }
Ejemplo n.º 4
0
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     _navigationHelper.OnNavigatedTo(e);
     await LetsTalkWaterModel.LoadItemsAsync();
 }