Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus into an usercontrol element
Message
De
10/06/2009 14:32:40
 
 
À
10/06/2009 13:57:00
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01405014
Message ID:
01405021
Vues:
43
>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
Fil
Voir

Click here to load this message in the networking platform