Exemple #1
0
        public LifecyclePage()
        {
            InitializeComponent();

            AppLog.Write();

            DataContext = _vm = new LifecyclePageVm();
            _vm.InitUserTextFromPersistentStorage();

            NavigationCacheMode = NavigationCacheMode.Required;
        }
Exemple #2
0
        private void HandleStringParameter(NavigationEventArgs navigationEventArgs)
        {
            var param = navigationEventArgs.Parameter as string;

            if (string.IsNullOrEmpty(param))
            {
                return;
            }

            if (param == "loadnote")
            {
                DataContext = _vm = new LifecyclePageVm();
                _vm.InitUserTextFromPersistentStorage();
            }
        }