Ejemplo n.º 1
0
        /// <summary>
        /// 界面出现时执行
        /// </summary>
        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (!hasInitialize)
            {
                viewModel.Initialize();

                hasInitialize = true;
            }
        }
Ejemplo n.º 2
0
 private void TasksViewControl_Loaded(object sender, RoutedEventArgs e)
 {
     TaskListViewControl.DataContext = taskViewModelObject;
     TasksViewControl.DataContext    = taskViewModelObject.TaskViewModelControl;
     taskViewModelObject.Initialize();
 }