Skip to content

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Behaviors - Create a Custom Attached Behavior

Each Behavior is a Behavior<T> class descendant. The T parameter defines the associated control type.

The Behavior<T> class contains the AssociatedObject property. DevExpress MVVM Framework specifies this property when you add a Behavior to the Behaviors collection.

After the AssociatedObject is specified, DevExpress MVVM Framework invokes the virtual OnAttached method. You can override this method to subscribe to AssociatedObject's events and initialize its properties.

To unsubscribe from events, you can use the virtual OnDetaching method. DevExpress MVVM Framework invokes when the Behavior is destroyed.

Files to Look At

Documentation

Does This Example Address Your Development Requirements/Objectives?

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

About

Create a Custom Attached Behavior.

Topics

Resources

Stars

1 star

Watchers

54 watching

Forks

Used by

Contributors

Languages