Get clicked object from ItemsControl and populate Popup with its properties
问题 I've got an ItemsControl which displays objects from a list from my viewmodel. I also have code to display a Popup when the user click on an item in the ItemsControl. However I don't know how to get the actual object from the clicked item to read its properties and display them in the Popup . I've got a Click event handler for the Button (which is used to display my items in the ItemsControl ) and I tried to see in the debugger if the button contains the desired object but apparently it doesn