Greg,

Shame EventSetters don't seem to work. 

You've probably seen this already, but a quick google provided this possible 
semi-code-behind approach - 
http://forums.silverlight.net/forums/p/94976/292325.aspx 



From: Greg Keogh 
Sent: Monday, April 19, 2010 9:49 PM
To: 'ozSilverlight' 
Subject: RE: Mouseclick in ListBox


>Not 100% sure if its the same in Silverlight but I think this should work 

 

ItemContainerStyle doesn't seem to work and searches hint that the EventSetter 
isn't available for Silverlight. I've seen a few pages were people use 
behaviours to get a similar effect. I'm studying them now.

 

Which reminds me ... In my attempts to use binding everywhere possible I still 
haven't figured out which is the most elegant way of binding commands (button 
clicks etc) so as to remove all event handlers from control code-behind.

 

Some people use a wrapper class, some use attached properties, and they all 
argue with each other. Can anyone cut though the noise on this issue and 
recommend the best way of binding command handlers?

 

Greg



--------------------------------------------------------------------------------


_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to