Page.DisplayAlert 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DisplayAlert(String, String, String) |
使用单个取消按钮向应用程序用户显示警报对话框。 |
DisplayAlert(String, String, String, String) |
使用接受和取消按钮向应用程序用户显示警报对话框。 |
DisplayAlert(String, String, String)
DisplayAlert(String, String, String, String)
使用接受和取消按钮向应用程序用户显示警报对话框。
public System.Threading.Tasks.Task<bool> DisplayAlert (string title, string message, string accept, string cancel);
member this.DisplayAlert : string * string * string * string -> System.Threading.Tasks.Task<bool>
参数
- title
- String
警报对话框的标题。
- message
- String
警报对话框的正文文本。
- accept
- String
要显示在“接受”按钮上的文本。
- cancel
- String
要显示在“取消”按钮上的文本。
返回
包含用户的选择作为布尔值的任务。 true
指示用户接受了警报。 false
指示用户取消了警报。