是否可以DisplayPromptAsync
:
await DisplayPromptAsync("", "DEFAULT VALUE IS:", "ОК", "CANCEL","PLACEHOLDER");
添加默认值?
例如,当用户打开DisplayPrompt时,我想给出一封建议电子邮件。
是的,在最新版本的中有一个参数
public System.Threading.Tasks.Task<string> DisplayPromptAsync (
string title, string message, string accept = "OK",
string cancel = "Cancel", string placeholder = default,
int maxLength = -1, Xamarin.Forms.Keyboard keyboard = default,
string initialValue = "");
使用initialValue