private async void btnAddTask_Click(object sender, RoutedEventArgs e) { var description = Description.Text; if (Description.Text.Length != 0) { await tvm.AddNewTask(description); Description.Text = ""; } else { MessageDialog md = new MessageDialog("Description can't be empty!"); await md.ShowAsync(); } }