public MainPage() { this.InitializeComponent(); if (viewModel.Tasks.Count == 0) { newTaskBtn.Visibility = Visibility.Visible; } DataContext = new ViewModels.TaskViewModel(); }
public void Add(ViewModels.TaskViewModel task) { tasks.AddTask(task); SelectedIndex = Tasks.IndexOf(task); }
public ShowTask() { this.InitializeComponent(); DataContext = new ViewModels.TaskViewModel(); }
public MainWindow() { InitializeComponent(); DataContext = new ViewModels.TaskViewModel(); }