Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus into an usercontrol element
Message
From
11/06/2009 18:10:58
 
 
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:
01405386
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?
>
>Thanks in advance,
>A. Llano

My focus statements ussually end up looking like this:
Dispatcher.BeginInvoke(DispatcherPriority.Input,
                       new ThreadStart(delegate()
                       {
                       myUserControl.txtObject.Focus();
                       }));
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform