I'm working in windows 8 store application and I'm trying to popup a dialog to let the user enter information in a textbox for example.
How to do that ?
The InputDialog control in WinRT XAML Toolkit does just that. It is basically a Popup control with a TextBox and some buttons. There is a sample for it too. The most basic one does this:
var dialog = new InputDialog();
var result = await dialog.ShowAsync(
"This is the title",
"This is the content/message",
"Option 1",
"Option 2",
"Option 3");
The result is the string that is used on the button that was clicked - e.g. "Option 1".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With