I have a list of products, sitting in a ListView. Each product has details. If I press a button in one of the products within the ListView, the event handler is bound to the product and all its details. Lets say for arguments sake that the button fires the following event handler:
public async void OnClickViewImageCarousel(object sender, EventArgs e)
{
var selectedItemDetails = ((Button)sender).CommandParameter;
}
During debugging, the selectedItemDetails shows the following locals:
How do you access the fields? As in how could I do something like:
var FieldIWantToUse = selectedItemsDetails.ShortDescription
Thanks guys.
