Top "Attachedbehaviors" questions

How do you handle a ComboBox SelectionChanged in MVVM?

For those doing pure MVVM, how do you handle a ComboBox SelectionChanged event without reverting to code behind? I tried …

wpf events mvvm attachedbehaviors
When should I use FrameworkPropertyMetadata or UIPropertyMetadata over plain PropertyMetadata?

When looking at sample attached properties and behaviors, I've seen a mishmash of uses of FrameworkPropertyMetadata, UIPropertyMetadata and PropertyMetadata. Since …

wpf attached-properties attachedbehaviors
<i: Interaction.Behavior> option is not coming for applying beahviour

I have been trying to implement a behavior on a wpf window therefore I have added reference to System.Winodws.…

wpf xaml mvvm blend attachedbehaviors
Attached Behavior handling an Attached Event in WPF

I googled regarding this question but couldn't gather any information and I was wondering if it is possible for an …

wpf xaml events attachedbehaviors
Drag Drop Row behavior on WPF DataGrid

I am trying to make an attached behavior to reorder rows bby doing Drag & Drop I found some solution (…

c# wpf drag-and-drop wpfdatagrid attachedbehaviors
Custom attached events in WPF

I might be getting the terminology wrong here, but I think I'm trying to create an attached event. In the …

c# wpf events routed-events attachedbehaviors
How can I fix the DependencyPropertyDescriptor AddValueChanged Memory Leak on AttachedBehavior?

I know I need to call RemoveValueChanged, but I have not been able to find a reliable place to call …

wpf memory-leaks dependency-properties attachedbehaviors
Reducing boilerplate code in MVVM WPF app for attached properties, commands, etc?

I'm working on a WPF MVVM application. The thing that I'm noticing is that I have to write an inordinate …

c# wpf mvvm attached-properties attachedbehaviors