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; }
private void RefreshViewDataOnPage() { CurrentData.LastOperationsList = null; vM = new ViewModel(); this.DataContext = null; this.DataContext = vM; }