Пример #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            vM = new ViewModel();
            this.DataContext = vM;
            RefreshViewDataOnPage();

            while (NavigationService.CanGoBack)
                NavigationService.RemoveBackEntry();
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            LoadPageName();

            CurrentData.SortListByTap(articleMode);

            vM = new ViewModel(articleMode);
            listBox1.DataContext = vM;
        }
Пример #3
0
 private void RefreshViewDataOnPage()
 {
     CurrentData.LastOperationsList = null;
     vM = new ViewModel();
     this.DataContext = null;
     this.DataContext = vM;
 }