Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does anyone know how to get control from element host?
Each element host contain nice text box from WPF, on key down I want to next text box have focus?

Any idea..
Posted

1 solution

Try this:

0) Get the parent container from the control's Parent property

1) Get the collection of children from the parent's Children property

2) Find the control int he children collection that's currently got the focus

3) Set the focus on the next child in the children collection.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900