Information générale
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
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.....
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement