This is for WP7.
I have a button in a listbox itemtemplate. In the associated ViewModel, I have RelayCommand, which I have bound to the Click event of the Button (using MVVMLight EventToCommand). All I want is to pass in the ListItem of the ListBox when the button is clicked.
Any ideas?
use in xaml
CommandParameter="{Binding}"which will pass your selected ListItem to the commandthen in view model