private void HandleObjectParameter(NavigationEventArgs navigationEventArgs) { var vm = navigationEventArgs.Parameter as LifecyclePageVm; if (vm == null) { return; } DataContext = _vm = vm; }
public LifecyclePage() { InitializeComponent(); AppLog.Write(); DataContext = _vm = new LifecyclePageVm(); _vm.InitUserTextFromPersistentStorage(); NavigationCacheMode = NavigationCacheMode.Required; }
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(); } }