Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 3.18 KB

File metadata and controls

39 lines (27 loc) · 3.18 KB

WPF MVVM Framework - Execute Multiple Commands with CompositeCommandBehavior

Overview

Follow the steps below to use the CompositeCommandBehavior:

  1. Define the behavior for a target object.
  2. Create CommandItem objects that are commands which the behavior should execute. Pass them to the behavior.
  3. Specify the Command property for an each command to bind it to a ViewModel’s command.

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

The CompositeCommandBehavior.CompositeCommand property returns the aggregated function.

Files to look at:

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)