Below is the code for setting focus to user control’s textbox which is loaded as modaldialog in WPF.
public MyUserControl(){ InitializeComponent(); FocusManager.SetFocusedElement(this, txtQuantity);}
Happy coding…
No comments:
Post a Comment