An implementation of ICommand which uses delegates to access callbacks. This class supports the CommandAttribute aspect infrastructure and should not be used directly.
Implements
Namespace: Metalama.Patterns.Wpf.Implementation
Assembly: Metalama.Patterns.Wpf.dll
Syntax
public sealed class DelegateCommand : ICommand
Constructors
Name | Description |
---|---|
DelegateCommand(Action<object?>, Func<object?, bool>?) | Initializes a new instance of the DelegateCommand class, without INotifyPropertyChanged integration. |
DelegateCommand(Action<object?>, Func<object?, bool>, INotifyPropertyChanged, string) | Initializes a new instance of the DelegateCommand class, with INotifyPropertyChanged integration. |
Methods
Name | Description |
---|---|
CanExecute(object?) | |
Execute(object?) |
Events
Name | Description |
---|---|
CanExecuteChanged |