Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus into an usercontrol element
Message
From
10/06/2009 14:32:40
 
 
To
10/06/2009 13:57:00
Antonio Llano
Inmollano S.L.
Getxo, Spain
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01405014
Message ID:
01405021
Views:
42
>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
Map
View

Click here to load this message in the networking platform