General information
Category:
Windows Presentation Foundation (WPF)
Environment versions
Network:
Windows 2008 Server
>Hi all,
>
>Is there any way to set the focus to an WPF UserControl´s Element programaticaly?
>
>I can SetFocus to the UserControl, but how be set focus to one of its elements?
If you always want to set focus to the same element within the UserControl you could use the UserControl's GotFocus event to set focus to the required contained element.
If not then I think you would have to explicitly expose the relevant contained elements as properties of the UserControl.....
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only