private void UpdateCommands() { RaisePropertyChanged(nameof(EditSelected)); _editSelected?.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(SendSelectedImageToClipboard)); RaisePropertyChanged(nameof(SendSelectedScaledImageToClipboard)); RaisePropertyChanged(nameof(SendSelectedTextToClipboard)); _sendSelectedToClipboard?.RaiseCanExecuteChanged(); CloneSelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(CloneSelectedToolTip)); CopySelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(CopySelectedToolTip)); MoveSelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(MoveSelectedToolTip)); ExportSelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(ExportSelectedToolTip)); DeleteSelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(DeleteSelectedToolTip)); ResetStylesSelected.RaiseCanExecuteChanged(); RaisePropertyChanged(nameof(ResetStylesSelectedToolTip)); }
private void UpdateCommands() { RaisePropertyChanged("EditSelected"); _editSelected?.RaiseCanExecuteChanged(); RaisePropertyChanged("SendSelectedImageToClipboard"); RaisePropertyChanged("SendSelectedScaledImageToClipboard"); RaisePropertyChanged("SendSelectedTextToClipboard"); _sendSelectedToClipboard?.RaiseCanExecuteChanged(); CloneSelected.RaiseCanExecuteChanged(); RaisePropertyChanged("CloneSelectedToolTip"); CopySelected.RaiseCanExecuteChanged(); RaisePropertyChanged("CopySelectedToolTip"); MoveSelected.RaiseCanExecuteChanged(); RaisePropertyChanged("MoveSelectedToolTip"); ExportSelected.RaiseCanExecuteChanged(); RaisePropertyChanged("ExportSelectedToolTip"); DeleteSelected.RaiseCanExecuteChanged(); RaisePropertyChanged("DeleteSelectedToolTip"); ResetStylesSelected.RaiseCanExecuteChanged(); RaisePropertyChanged("ResetStylesSelectedToolTip"); }