I've created a pop up window in c#. I have a button and when the user clicks the button the window pops up. My problem is that if the user happens to click the button multiple times, the window will be opened multiple times. Once the user has opened the window, I do not want the window to be opened again if the user clicks the button. Is this possible to achieve?
My make the window pop up like this:
PopUp myPopUp = new PopUp();
myPopUp.show();
I am using wpf.