Reputation: 893
How can I show a message box with an input dialog on Windows Phone 8.1 (Universal App)?
Upvotes: 2
Views: 3412
Reputation: 893
using the <Popup>
-XAML-Tag with a <TextBox>
inside is working fine.
(same XAML Code on Windows and Windows Phone)
Upvotes: 0
Reputation: 3157
I think you should use Content Dialog dedicated for Windows Phone 8.1 Universal.
Just right click on your Windows Phone 8.1 project in Visual Studio and select add new item -> Content Dialog.
Hope I helped.
Upvotes: 1
Reputation: 21889
In a Windows Phone Runtime app (but not on Windows) you can use a ContentDialog to create a full-screen message box with whatever content you need. This can include input controls.
If you add a new content dialog from the Add New Item... menu it will generate a sample template to input an email address and password. Modify that to fit your input, new one up, then await its ShowAsync like you would a MessageDialog.
Upvotes: 2