C# Maui 的 messagebox (顯示快顯 ~ DisplayAlert)
C# Maui 的 messagebox (顯示快顯 ~ DisplayAlert)
資料來源: https://learn.microsoft.com/zh-tw/dotnet/maui/user-interface/pop-ups
顯示警示
await DisplayAlert("標題", "這是一則訊息", "確定"); bool answer = await DisplayAlert("Question?", "Would you like to play a game", "Yes", "No"); Debug.WriteLine("Answer: " + answer);
引導使用者完成工作
string action = await DisplayActionSheet("ActionSheet: Send to?", "Cancel", null, "Email", "Twitter", "Facebook"); Debug.WriteLine("Action: " + action);
…