Quantcast
Channel: ListViewItem Event Setter
Viewing all articles
Browse latest Browse all 5

ListViewItem Event Setter

$
0
0

Hi,

if you don't want to use code behind, you should check out the Attached Behaviour pattern. You can find lots of examples on the internet. I have them in my blog, too, especially in these posts: http://wpfglue.wordpress.com/2009/11/05/list-of-useful-design-patterns-for-wpf-glue/ , http://wpfglue.wordpress.com/2009/11/21/switching-the-keyboard-to-different-languages/ and http://wpfglue.wordpress.com/tag/sticky-component/

With an attached behaviour, you can use an attached property to add an event handler, and the code for it can be anywhere where it can be referenced by the class that defines the attached property.


http://wpfglue.wordpress.com

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>