Ibr*_*ady 3 .net c# windows-runtime winrt-xaml
我在Windows 8商店应用程序中工作,我正在尝试弹出一个对话框,让用户在文本框中输入信息.
怎么做 ?
InputDialogWinRT XAML Toolkit中的控件就是这样做的.它基本上是一个带有TextBox和一些按钮的Popup控件.还有一个样本.最基本的一个是这样的:
var dialog = new InputDialog();
var result = await dialog.ShowAsync(
"This is the title",
"This is the content/message",
"Option 1",
"Option 2",
"Option 3");
Run Code Online (Sandbox Code Playgroud)
结果是在单击的按钮上使用的字符串 - 例如"选项1".
| 归档时间: |
|
| 查看次数: |
4688 次 |
| 最近记录: |