Click here to Skip to main content
16,019,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having multiple controls under multiple panels such as StackPanel,Grid etc.

It I press tab tab focus should move to the control inside the container but instead it highlighting the Panel or Grid by rectangular Dotted lines.

Kindly provide me a solution to get rid of this issue.

What I have tried:

Tried using
IsTabStop="False"
but its not working for Panels
Posted
Updated 30-Aug-18 7:10am
Comments
George Swan 30-Aug-18 12:40pm    
You can set the focus to an elment within a container with something like this
<Grid Margin="5" FocusManager.FocusedElement="{Binding ElementName=ForeNameTB}">
The tab control should then move the focus to the next element.

1 solution

Something that is "focusable" will have a ".Focusable" property; set it (and .TabStop) to "false" where applicable.
 
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