views:

81

answers:

1

I need to tie a WPF-Command to the MouseEnter event of a Stackpanel. How can I do that?

+2  A: 

You can use the attached behavior pattern. There are several implementations, a good one is available here : http://marlongrech.wordpress.com/2008/12/13/attachedcommandbehavior-v2-aka-acb/s

Thomas Levesque
I was hoping for a much more built-in support for that in WPF but this seems like quite a neat way of solving it.
Andreas