开发者

Setting tabindex in MonoTouch.Dialog

开发者 https://www.devze.com 2023-01-28 08:49 出处:网络
Is this possible at all? When I create a form using MonoTouch.Dialog, it comes automatically wi开发者_StackOverflow中文版th the \"next\" button, but that jumps to the last input in the form. Is this a

Is this possible at all? When I create a form using MonoTouch.Dialog, it comes automatically wi开发者_StackOverflow中文版th the "next" button, but that jumps to the last input in the form. Is this a bug, or is it because I have to set a tabindex of sorts to make it work?


It should jump to the next input line, is that not the behavior that you are experiencing?

A test case would shed some light.


Ah, I found the answer on github. My bad, I should've looked more thoroughly there first. On the GetCell of the EntryElement, inside the entry.ShouldReturn foreach-loop, you need to break after setting focus to the next input.

https://github.com/SuperYeti/MonoTouch.Dialog/blob/master/MonoTouch.Dialog/Elements.cs#L1096

0

精彩评论

暂无评论...
验证码 换一张
取 消