简体   繁体   中英

popup Message Dialog with a TextBox in universal apps

我想创建一个带有文本框的弹出消息对话框,该对话框将输入文本发送到变量。我在网上找不到通用应用程序的好解决方案,请帮忙,谢谢

I suggest you to use a ContentDialog or a Flyout with a TextBox as content. Then you only have to bind a variable to the TextBox's Text attribute. A bind can be done with

Text={x:Bind VariableName, Mode=TwoWay}

See the following links for further details:

Use ContentDialog instead. Sample from Microsoft on github.

MessageDialog is for simple messages only.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM