Open sandboxFocus

Method CreateDelegateCommand

CreateDelegateCommand(Action, Func<bool>?)

Declaration
public static DelegateCommand CreateDelegateCommand(Action execute, Func<bool>? canExecute)
Parameters
Type Name Description
Action execute
Func<bool> canExecute
Returns
Type Description
DelegateCommand

CreateDelegateCommand(Action, Func<bool>, INotifyPropertyChanged, string)

Declaration
public static DelegateCommand CreateDelegateCommand(Action execute, Func<bool> canExecute, INotifyPropertyChanged canExecuteNotifier, string canExecutePropertyName)
Parameters
Type Name Description
Action execute
Func<bool> canExecute
INotifyPropertyChanged canExecuteNotifier
string canExecutePropertyName
Returns
Type Description
DelegateCommand

CreateDelegateCommand<T>(Action<T>, Func<T, bool>?)

Declaration
public static DelegateCommand<T> CreateDelegateCommand<T>(Action<T> execute, Func<T, bool>? canExecute)
Parameters
Type Name Description
Action<T> execute
Func<T, bool> canExecute
Returns
Type Description
DelegateCommand<T>
Type Parameters
Name Description
T

CreateDelegateCommand<T>(Action<T>, Func<T, bool>, INotifyPropertyChanged, string)

Declaration
public static DelegateCommand<T> CreateDelegateCommand<T>(Action<T> execute, Func<T, bool> canExecute, INotifyPropertyChanged canExecuteNotifier, string canExecutePropertyName)
Parameters
Type Name Description
Action<T> execute
Func<T, bool> canExecute
INotifyPropertyChanged canExecuteNotifier
string canExecutePropertyName
Returns
Type Description
DelegateCommand<T>
Type Parameters
Name Description
T