all the textboxes name starts with "tb" and the winnerx and winnery
numbers together locate that textbox where the winner is
I cant use ineed.Text because its a string not a button reference. How can i refer to tb(x)(y) button with "ineed" string
variable?

I'm fairly new to WPF, but something tells me you cannot do this. The TEXTBOX is a resource and it's assigned a resource ID, making it a CONST. In my project, I have had to encapsulate text assignments by parsing the string and using IF statements to update the appropriate TEXTBOX.