I have a ListView which has it’s table filled out with a ListItemCollection I am creating and managing programmatically.
I want to check which of the controls have received any kind of input, currently I am focused on any kind of TextInput. I do not have any idea how to find exactly which column and row this control is from (by name or id, whichever is easiest).
A solution to this problem in a usual Windows Forms application would be programmatically assigning a unique name to each control. With a template such as [control name]_[row], such as itemName_1.
It doesn’t seem possible to modify the name of a control generated by a ListItemCollection. I also tried binding a control with Path="x", however XAML prevents using the binding tag with the name property.
What is a good solution to this problem, where I can somehow detect which exact control was interacted with, without searching through all of them?
Here is what I have right now (in the picture only one row was created):

The problem here is that you use WPF in a WinForms way. It’s not meant to be used like that, and so you end up doing intricate and bogus things.
Here is what you should do :
Let’s say we are manipulating an order containing order details.
We first create classes to hold our data
And then we gonna create a view to visualize and edit our data