Esempio n. 1
0
        private void HandleObjectParameter(NavigationEventArgs navigationEventArgs)
        {
            var vm = navigationEventArgs.Parameter as LifecyclePageVm;

            if (vm == null)
            {
                return;
            }
            DataContext = _vm = vm;
        }
Esempio n. 2
0
        public LifecyclePage()
        {
            InitializeComponent();

            AppLog.Write();

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

            NavigationCacheMode = NavigationCacheMode.Required;
        }
Esempio n. 3
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();
            }
        }