Behavior is the part of UI logic that defines what interface elements do in response to conditions or interaction. Layout determines where elements appear; behavior determines their actions. section 9.3.2
Use behaviors when an existing control needs additional interaction logic:
- Attach functionality to a control without creating a subclass. section 9.2
- Connect a control event to a command when the control has no bindable command property. section 9.2
- Reuse an event-to-command behavior instead of writing a bespoke handler for one use case. section 9.2
Completing a to-do item
Attach an EventToCommandBehavior to a CheckBox, listen for CheckedChanged, invoke CompleteTodoCommand, and pass the bound to-do item as CommandParameter. The command can then update the item in the database. section 9.2



