开发者

Setting tabindex in MonoTouch.Dialog

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜