Closing Window on Enter Button

Mar 13, 2013 at 10:11 AM

i'm going crazy by trying to close a Dialog Window on Enter Button now for 3 days and now i have no idea anymore how to solve the Problem.

I'm using the OnScreenKeyboard Control in a WPF Window to enter the username and password. I call the Window with ShowDialog(). When the User press the Enter-button, i send the information through WCF and then i want to close the window, but the Window appears again and again and again ... I tried window.close() and Dialogresult = true inside the control and also inside the window.

Is there anyone who could help me ?

Many thanks in advance,