Need to trigger an event when ListBoxItem is clicked in ControlTemplate

Posted by Cen on Stack Overflow See other posts from Stack Overflow or by Cen
Published on 2010-06-17T09:56:26Z Indexed on 2010/06/17 12:33 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

I'm overriding the styles of my ListBoxItems with a ControlTemplate, however by doing that, I lost the handler for my ListBoxItem click event. I found a post that was helpful in saying I need to add an event handler in the ControlTemplate, but I don't know how to do this.

Any help & direction on doing this is greatly appreciated!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf