What is the best approach to pass the current view model state – specifically what textbox has focus – back to the view model?
My requirement is for context specific search, depending what text box has focus determines what field to search on in the database.
I’m using the MVVM pattern and really don’t want to put any code in the view.
You could use the
InvokeCommandActionavailable in the Expression Blend SDK:Where: