I writing wp7 silverlight app.
I have a listbox with items. I want each item to have different DataTemplate. I’m using OnContentChanged event and read the template to the ContentTemplate.
My problem is with buttons on the template. On runtime the buttons event handler is not found, and I get exception. What can I do?
I writing wp7 silverlight app. I have a listbox with items. I want each
Share
The easiest way to do this (to have different DataTemplate for each item) is to implement some kind of DataTemplateSelector.