c# - I want to get name of focused textbox controls that I created at run-time in WP 8.1 -
i adding got focus event mytextboxes when create them
`textbox xi = new textbox(); xi.name = "x" + i.tostring(); xi.width = 10; xi.height = 10; xi.gotfocus += xi_gotfocus;`
but can't focused control's name
void xi_gotfocus(object sender, routedeventargs e) { throw new notimplementedexception(); }
is there way name of these controls ? give thanks you
you can utilize below mentioned code
void xi_gotfocus(object sender, routedeventargs e) { textbox t = sender textbox; string name = t.name; }
c# wpf focus windows-phone-8.1
No comments:
Post a Comment