示例#1
0
        private void PromptAction()
        {
            var config = new PromptConfig();

            config.AndroidStyleId = 0;
            config.SetCancelText("Cancel");
            config.SetOkText("Ok");
            config.SetCancellable(true);
            config.OnAction = (x) => { };
            config.SetOnTextChanged((x) => { });
            config.SetTitle("Add bookmark");
            config.SetPlaceholder("Add bookmark name");
            string text = "My bookmark";

            config.SetText(text);
            config.SetMaxLength(70 + 5);
            config.SetInputMode(InputType.Default);


            var dialog = DependencyService.Get <ICustomUserDialog>();

            dialog.Prompt(config);
        }