Button click event

Posted by Malcolm on Stack Overflow See other posts from Stack Overflow or by Malcolm
Published on 2010-04-21T10:08:42Z Indexed on 2010/04/21 11:53 UTC
Read the original article Hit count: 335

Filed under:
|
|

I am binding an object of other class to a silverlight list box itemsource.I want to fire the click event of a button,but I don't want to define command under this class. I have defined other class and have defined command inside it. Now the question is how to bind the command of this class to the command property of that button.

There are two classes A and B

I am binding the item source of a listbox to A and i have defined a command in B and i need this command to bind with the button present inside the listbox.(ie..listbox->listboxitem->button)

Is there any way to bind to a property outside of the current data context? 

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about c#