这只是一个简化的例子,但我正在尝试设置这样一个功能,当我在我的应用程序中打开此页面时,键盘会自动弹出,准备让用户键入其对输入字段的响应。
var namelabel = new Label { Text = "What is your name?" };
var nameentry = new Entry { Placeholder = "Type here..." };
var colorlabel = new Label { Text = "What's your fav color?" };
var colorentry = new Entry { Placeholder = "Type here..." };
Content = new StackLayout {
Spacing = 15,
Children = { namelabel, nameentry, colorlabel, colorentry }
};
如何将页面的焦点设置为第一个输入框?另外,当用户输入完第一个条目后,我该如何设置,让用户可以按下键盘上的“下一个”按钮(或类似的按钮),使应用程序带他们进入填写第二个条目的状态?