Пример #1
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            IDictionary <string, string> parameters = this.NavigationContext.QueryString;

            foreach (var item in this.NavigationService.BackStack)
            {
                Debug.WriteLine(item.Source.ToString());
            }

            IBackStackBehaviour = new RemoveFromBackStackBehaviour();
            IBackStackBehaviour.RemoveEntry(this, new List <string>()
            {
                "SetPassCode", "Register", "SettingsView"
            });

            settingsViewModel = new SettingsViewModel(this);
            this.DataContext  = settingsViewModel;

            if (parameters.ContainsKey("PassCodeSet"))
            {
                bool PassCodeSet;
                bool.TryParse(parameters["PassCodeSet"], out PassCodeSet);

                settingsViewModel.IsPassCodeRequired = PassCodeSet;
            }

            base.OnNavigatedTo(e);
        }
Пример #2
0
		protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
		{
			IDictionary<string, string> parameters = this.NavigationContext.QueryString;
            IBackStackBehaviour = new RemoveFromBackStackBehaviour();
			
            if (parameters.ContainsKey("DateId"))
				DateId = parameters["DateId"];

            IBackStackBehaviour.RemoveEntry(this, new List<string>() { "CEDateView", "AddNoteView", "EditNoteView" });

			dateViewModel = new DateViewModel(Int32.Parse(DateId), this);
			this.DataContext = dateViewModel;

			base.OnNavigatedTo(e);
		}
Пример #3
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            IBackStackBehaviour = new RemoveFromBackStackBehaviour();
            IBackStackBehaviour.RemoveEntry(this, new List <string>()
            {
                "AddPersonView"
            });

            homeViewModel    = new HomeViewModel(this);
            this.DataContext = homeViewModel;

            LongListUpcoming.SelectedItem = null;

            base.OnNavigatedTo(e);
        }