- 2 minutes to read
The Behavior mechanism extends the capabilities of visual controls and adheres to the MVVM pattern. You can implement missing functionality with a custom Behavior and begin using it at any place in your application.
- Getting Started
- How to: Create a Custom Behavior
Predefined set of Behaviors
- EventToCommand - allows you to bind an event to a command.
- KeyToCommand - allows you to bind a key gesture to a command.
- FocusBehavior - allows you to set the focus to a UI control without utilizing code-behind.
- ValidationErrorsHostBehavior - allows tracking validation errors within a UI container.
- ConfirmationBehavior - allows you to show a confirmation box before performing an action.
- DependencyPropertyBehavior - allows you to bind to a property that is not dependent.
- EnumItemsSourceBehavior - allows you to bind an ItemsSource property to the enum type.
- CompositeCommandBehavior - allows you to aggregate and execute multiple WPF commands.
- FunctionBindingBehavior - allows you to bind the function result to your View.
- MethodToCommandBehavior - allows you to bind a method to a property of the ICommand type.
- CurrentWindowSerializationBehavior - allows you to serialize/deserialize the state and size of an associated window.
- BarSubItemThemeSelectorBehavior - allows you to implement a theme selector based on a BarSubItem.
- BarSplitItemThemeSelectorBehavior - allows you to implement a theme selector based on a BarSplitButtonItem.
- RibbonGalleryThemeSelectorBehavior - allows you to implement a theme selector based on a RibbonGalleryBarItem.