Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why TabIndex property of any element in WPF is 2147483647?

In WPFapplication by default TabIndex = 2147483647 for any element.
Why it is 2147483647?
Why not any other number?
Am I missing something?
I'm just interested.

like image 384
Towhid Avatar asked Oct 20 '25 20:10

Towhid


1 Answers

This number is MaxInt, or 2^31 - 1 (see here)

As you cannot possibly choose a higher number for your own tab indices, this ensures that new controls never alter an existing tab order, if one has been manually specified.

like image 92
Scott B Avatar answered Oct 22 '25 10:10

Scott B