Bastl
Bastl

Reputation: 893

Input Dialog Message Box (Windows Phone 8.1 Universal)

How can I show a message box with an input dialog on Windows Phone 8.1 (Universal App)?

Upvotes: 2

Views: 3412

Answers (3)

Bastl
Bastl

Reputation: 893

using the <Popup>-XAML-Tag with a <TextBox> inside is working fine. (same XAML Code on Windows and Windows Phone)

Upvotes: 0

Daniel Krzyczkowski
Daniel Krzyczkowski

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

Rob Caplan - MSFT
Rob Caplan - MSFT

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

Related Questions