I am building a WPF application using C#. I want to pop out a dialog box to prompt the user to enter his/her name. After that I will keep track of the name and save some dat
Just create another Window class in your Visual Studio-project, which holds the username in a public property. Then create an instance of this window somewhere in your main window, and Show it using the ShowDialog method. This blocks until your "dialog" window is closed. Then you can get the username from the public property and do whatever you want with it.