tags:

views:

53

answers:

1

I have an MVVM application with various TextBox controls and a virtual keypad. (This application is to run on a touch screen system, with no keyboard). To change the value of a TextBox, the user has to touch the TextBox and then use the virtual keypad to enter a number. How can my VM know which TextBox to change when it gets the command from the keypad?

A: 

if you mean WPF use FocusManager.GetFocusedElement also look here

ArsenMkrt