I have Popup
window where dynamically attaching the UserControl
. Here I need to set the focus for first control. If I use:
FocusManager.FocusedElement="{Binding ElementName=txtcode}"
on UserControl
the cursor not coming. Could anyone help me to set focus on first element in the UserControl
.
Thanks in advance.