Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of "IsTabStop" Property for a control in xaml?

Tags:

.net

windows-8

In MSDN I saw this.But I can't Understand ,Can anyone Explain me Clearly what is the use.

Gets or sets a value that indicates whether a control is included in tab navigation.

like image 658
user1966180 Avatar asked Jan 10 '13 09:01

user1966180


2 Answers

Tabbing through a form is ordered based on an explicit TabIndex setting or an implicit TabIndex based on the Page hierarchy. This way you can make sure data entry is fluid - like the user can Tab from City to State to Zip and NOT from Zip to City to State.

TabIndex is completely meant to make the usability of data entry fields more friendly. In many ways TabIndex helps drive the workflow of your form without explicitly telling the end user. It's very nice but can be very tedious on large forms. Many developers don't bother. They suck. IMHO

IsTabStop is a kind of on off for the Tab functionality. When set to true (the default) the user will continue to Tab through your form like normal. When set to false the user will Tab through your form, but that control will be skipped.

It is important to note that removing a control from the Tab order is only a convenience and in no way protects the control from manually being entered through a mouse's click or a finger's tap.

In a way IsHitTarget is like IsTabStop. But that's for another question ;)

like image 120
Jerry Nixon Avatar answered Jan 28 '23 22:01

Jerry Nixon


Does what it says on the tin

If you had say three edit boxes and the middle one was display only, you could set tabstop to false on it then Tab from the first would jump to the third. Given the tab order was correct of course.

like image 44
Tony Hopkinson Avatar answered Jan 28 '23 22:01

Tony Hopkinson