private void NotifySelectedItemsChanged() { NotifyPropertyChanged(ItemArgs); NotifyPropertyChanged(SelectedItemsArgs); _selectCommand.Invalidate(); _unselectCommand.Invalidate(); }
private void HandleProgressItemChanged(object sender, PropertyChangedEventArgs e) { if (e.Match <IProgressItemViewModel>(v => v.State) || e.Match <IProgressItemViewModel>(v => v.TimeElapsed)) { _dispatcher.CheckedInvoke(() => { _pauseCmd.Invalidate(); _resumeCmd.Invalidate(); }); } }