user3821206
user3821206

Reputation: 619

popup Message Dialog with a TextBox in universal apps

I want to create a popup Message Dialog with a TextBox,that will send the input text to a variable,I didn't found good solutions in the net for the universal apps any help please and thanks

Upvotes: 0

Views: 267

Answers (2)

Alamakanambra
Alamakanambra

Reputation: 7826

Use ContentDialog instead. Sample from Microsoft on github.

MessageDialog is for simple messages only.

Upvotes: 1

Philip Raschke
Philip Raschke

Reputation: 75

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:

Upvotes: 3

Related Questions