/// <summary> /// On item selected event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnItemSelected(object sender, EventArgs e) { ProjectModel project = sender as ProjectModel; if (project == null) { return; } selectAll = ProjectList.All(p => p.Selected); NotifyPropertyChanged(nameof(SelectAll)); }