我想在我的消息对话框中显示一个文本框以获取用户输入并单击确定按钮以在我的 MainPage.cs 中检索文本框值,
private async void join_btn_Click(object sender, RoutedEventArgs e)
{
var messageDialog = new MessageDialog(" Enter your secure code Here");
messageDialog.Title = "Join session";
messageDialog.Commands.Add(new UICommand(
"OK",
new UICommandInvokedHandler(this.CommandInvokedHandlerOKFunction)));
messageDialog.DefaultCommandIndex = 0;
messageDialog.CancelCommandIndex = 1;
await messageDialog.ShowAsync();
}
关于如何做的任何建议?