WPF - attached behavior to capture MouseEnter on Image in TreeviewITem

Posted by pileggi on Stack Overflow See other posts from Stack Overflow or by pileggi
Published on 2010-06-08T15:14:37Z Indexed on 2010/06/08 15:52 UTC
Read the original article Hit count: 361

Hi!

Could I have, please, a little code-sample of WPF "attached behavior"?

I explain my problem:

I've done my TreeView all with XAML but now I'd like to manage an event with code-behind. The HierarchicalDataTemplate contains an Image. I need to capture the events MouseEnter / MouseLeave on the Image.

I'd like to do this with "attached behavior", but I don't know how.

Thank you! Pileggi

© Stack Overflow or respective owner

Related posts about wpf

Related posts about image