Commanding and a ListBox button click

Topics: Prism v2 - Silverlight 2
Apr 30, 2009 at 4:04 PM
I want to be able to click a button in a listbox and delete that item. I've looked through the example of how this is done in the PositionSummaryView.xaml.cs. What I'm trying to figure out is how you would do this using MVVM. I've searched for a good example but have not found any. Has anyone done this or found an example? Am I missing something Simple?   
May 1, 2009 at 3:02 PM

The easiest way to do this is to TwoWay bind the SelectedItem of the ListBox to a property on your ViewModel and then handle any logic you need in the set of the property.

Let me know if that helps.