I have a xamnumericInput Control. On Click event of a button, I need to set focus on to this xamnumericcontrol.
Please help me out.
Hello Naresh,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I can suggest you see this link from codeproject:
http://www.codeproject.com/Articles/110790/Silverlight-SetTextBoxFocusUsingMVVM
where it is explained how to set the focus to a textbox. The same approach can be used for any Silverlight control. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Hi Stefan,
Thank you very much for your response.
That may be true but I need this requirement in MVVM Pattern as we are following this pattern.
Thank you for your post. I have been looking into it and I can suggest you call the Focus method of the XamNumericInput like this:
input.Focus();
Where “input” is the name of the XamNumericInput. Please let me know if this helps you or you have further questions on this matter.