Click here to Skip to main content
15,917,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C# base Form class ProcessTabKey () method working fine, but not working in C# WPF.
if not ProcessTabKey() method in c# WPF. what is the similar Tabkey control on forward and backward. Thanks
Posted

1 solution

C#
FrameworkElement element = Keyboard.FocusedElement as FrameworkElement;
if (element != null)
    element.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));
 
Share this answer
 
v2
Comments
gpasupathi 23-Aug-11 20:57pm    
Thanks
gpasupathi 23-Aug-11 21:07pm    
sir, it's Not working When i press ctrl key it's move forward. i want TabKey Intercept .
Simon Bang Terkildsen 23-Aug-11 21:11pm    
I'm not entirely sure what you're saying, but FocusNavigationDirection.Next determines the direction.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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