WPF – Set Focus when a button is clicked – No Code Behind
Have you considered using an attached behaviour. They are simple to implement and use AttachedProperty’s. Although it still requires code, this code is abstracted away in a class and be reused. They can eliminate the need ‘code behind’ and are often used with the MVVM pattern. Try this one and see if it works for … Read more