-
Hello, I was hoping to get some clarity on the purpose of the What i am finding is that regardless of what i put for the Thus, if i have a view with a I am confused why something is overwriting my set |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Hi BDisp, I did some testing last night with some sample code and the results were somewhat as you suggested, but in other ways strange. I created three For my second run, i added a value to the Where things get strange is when i add the Interestingly, if i set the values for I will paste the code below with the last test values set. A breakpoint on the line In the end, i am sure there is a predictable method to the way the system is ordering controls, but it seems rather arbitrary from the outside, and the
|
Beta Was this translation helpful? Give feedback.
-
Hi - yes this is v1. Sorry i should have indicated that. |
Beta Was this translation helpful? Give feedback.
-
Hi - i was just curious if this was something that could be fixed in v1, or if i should wait and move to v2. It would certainly help to have the tab order be controllable. |
Beta Was this translation helpful? Give feedback.
I found the bug and I'll submit a PR with a fix. But for your example work you must set the tabindex after all views are added to the superview and not by setting only after add one at a time. So after all the views are added then set the tabindex for them. In the v2 the bug also exist and I'll submit a PR for him too. Remember that the order index isn't continuous because all the tabindexes that have a value of -1 are ignored. So, it may have 1, 3, 5, etc... If you want only a ordered of all tabindexes you filter them, like
TabIndexes.Select(t => t > -1)
.