Пример #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Utils.ShowHideProgressBar(this.progress, true);

            DataContext = null;
            SetModelPropertiesFromQS();

            if (await _model.LoadDataAsync())
            {
                DataContext = _model;

                this.EventLocations.ItemsSource = _model.Locations;
            }

            Utils.ShowHideProgressBar(this.progress, false);
        }