Simple Binding question, unable to bind to button command in a DataTemplate using MVVM Light Toolkit

Posted by deliberative assembly on Stack Overflow See other posts from Stack Overflow or by deliberative assembly
Published on 2010-05-26T02:47:29Z Indexed on 2010/05/26 2:51 UTC
Read the original article Hit count: 273

I've been attempting to bind to buttons within a DataTemplate without much success. The button does not fire. Button Click works successfully outside of the DataTemplate. Yet if I create a Click="button_click" the click button is fired. The Button Content binds perfectly as well.

Example to illustrate..

Why does the command not fire? Advice on how this should be handled this? The example is a simplified version of my real problem, I am currently not using a Listbox. I only recreated the same problem with a listbox..

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about binding