WPF: Create a dialog / prompt

Posted by stefan.at.wpf on Stack Overflow See other posts from Stack Overflow or by stefan.at.wpf
Published on 2010-05-09T03:08:13Z Indexed on 2010/05/09 3:18 UTC
Read the original article Hit count: 376

Filed under:
|
|

Hello,

I need to create a Dialog / Prompt including TextBox for user input. My problem is, how to get the text after having confirmed the dialog? Usually I would make a class for this which would save the text in a property. However I want do design the Dialog using XAML. So I would somehow have to extent the XAML Code to save the content of the TextBox in a property - but I guess that's not possible with pure XAML. What would be the best way to realize what I'd like to do? How to build a dialog which can be defined from XAML but can still somehow return the input? Thanks for any hint!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about dialog