public StartUpPage() { this.InitializeComponent(); VM = ViewModel.ViewModel.getVM(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public ItemPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; VM = ViewModel.ViewModel.getVM(); this.DataContext = VM; VM.View = this as IVIewItemPage; timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += async delegate { await VM.updateMessages(emailTo); }; }
public PivotPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; VM = ViewModel.ViewModel.getVM(); this.DataContext = VM; visibility = false; //timerUser = new DispatcherTimer(); //timerLocations = new DispatcherTimer(); }