CompositeCommandBehavior.CanExecuteCondition Property

Specifies whether the CompositeCommand can be executed if any of its inner commands can be executed.

Namespace: DevExpress.Mvvm.UI

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public CompositeCommandExecuteCondition CanExecuteCondition { get; set; }
Public Property CanExecuteCondition As CompositeCommandExecuteCondition

Property Value

Type Description
CompositeCommandExecuteCondition

Any of the CompositeCommandExecuteCondition enumeration values.

Remarks

Set the CanExecuteCondition property to AllCommandsCanBeExecuted to allow the CompositeCommand execution only when all of its inner commands can be executed (the CommandItem.CanExecute property is set to true).

When the CanExecuteCondition property is set to AnyCommandCanBeExecuted, the CompositeCommand can be executed when at least one of its inner commands can be executed (the CommandItem.CanExecute property is set to true).

See Also