Пример #1
0
        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;
        }
Пример #2
0
        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);
            };
        }
Пример #3
0
        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();


        }