c# - Find the content of a TextBox inside a DataTemplate with multiple rows -
i have code: <stackpanel> <itemscontrol itemssource="{binding position}"> <itemscontrol.itemtemplate> <datatemplate> <grid> <grid.columndefinitions> <columndefinition width="2*" /> <columndefinition width="*" /> <columndefinition width="*" /> <columndefinition width="*" /> <columndefinition width="80" /> </grid.columndefinitions> <textbox grid.column="0" text="{binding name}" margin="5" /> <textbox grid.column="3" text="{binding id}" margin="5" /> <button grid.column="4" content="x" click="delete" /> </grid> </datat...