Interface IAsyncRelayCommand
Inherited Members
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Wpf.dll
Syntax
public interface IAsyncRelayCommand : IAsyncRelayCommandCommon, ICommand, INotifyPropertyChanged
Properties
| Improve this Doc View SourceIsCommandManagerRequerySuggestedEnabled
Controls whether the command's CanExecuteChanged is attached to the RequerySuggested event.
Declaration
bool IsCommandManagerRequerySuggestedEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
If the IsCommandManagerRequerySuggestedEnabled property is set to true, calling the InvalidateRequerySuggested() method will also raise the CanExecuteChanged event.
This is the default behavior. InvalidateRequerySuggested() is regularly invoked by the framework to keep UI elemnts, that implement ICommandSource (like the Button control) and listen to the CanExecuteChanged event, updated.
When the IsCommandManagerRequerySuggestedEnabled property ios set to false, the CanExecuteChanged must be raised explicitly by calling the InvalidateCommand() method.