GUIFactoryServiceNewRelayCommand(Action, FuncBoolean) Method |
Gets a command that executes an action and evaluates the canExecute condition every time when
something in the Gui has changed.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public abstract ICommand NewRelayCommand(
Action execute,
Func<bool>? canExecute = null
)
Parameters
- execute Action
- The execute action.
- canExecute FuncBoolean (Optional)
- The canExecute function that evaluates if the execute action can be executed under the current conditions. May be null (in this case, it is considered to return true).
Return Value
ICommandA command that can be used, e.g. for binding to the Gui.
Implements
IGuiFactoryServiceNewRelayCommand(Action, FuncBoolean)See Also