How to Skip a Control in Keyboard Navigation

Posted by Issac under WPF on 4/9/2012 | Points: 10 | Views : 6521 | Status : [Member] | Replies : 5
Im using some controls like text box,buttons...etc in a wpf page
all these controls are in a grid and im using KeyboardNavigation.TabNavigation="Cycle" for that grid...
and its working fine....

now in that i dont want the tab to go on a certain control...means i would like to skip a tab in this cycle and move to another control

to explain : suppose im having 4 controls..
when i tab it goes to 1,2,3,4....
but i would like to skip 3 and go directly to 4 from 2

hope u understood....can anyone help me....




Responses

Posted by: Sakthi.Singaravel on: 4/9/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,

Change that control property...

Regards,
Singaravel M

Issac, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/9/2012 [Member] Silver | Points: 25

Up
0
Down
if u need stop textbox means,

TextBox1 .TabStop =False 


I think its useful for u..

Regards,
Singaravel M

Issac, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Issac on: 4/9/2012 [Member] Starter | Points: 25

Up
0
Down
TabStop is not working....

Issac, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/9/2012 [Member] Silver | Points: 25

Up
0
Down
see this link..
http://stackoverflow.com/questions/6961700/wpf-enable-disable-tabstop-based-on-whether-property-has-data

Regards,
Singaravel M

Issac, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 4/9/2012 [Member] Silver | Points: 25

Up
0
Down
Tabstop for WPF:


Setting the KeyboardNavigation.IsTabStop attached property on the element you wish to remove from the navigation list.

For Example:


<StackPanel>
<Button Content="Stop" />
<Button Content="No Stop" KeyboardNavigation.IsTabStop="false" />
<Button Content="Stop" />
</StackPanel>




Regards,
Singaravel M

Issac, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response