I am building a WPF application in which I need to open one of my WPF forms as a dialog (pop up) on the button click of another form. I know how do it in windows forms, just not getting how I’ll do it in WPF.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a complete explanation of how to do a Dialog in WPF:
http://marlongrech.wordpress.com/2008/05/28/wpf-dialogs-and-dialogresult/
The basic code you are looking for is as follows:
The above article will walk you through how to get information back from the form if you want it as well.