How can I close a childwindow when I click outside of it?
Share
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.
if you are using the default silverlight child window style, when it opens, the outside part (the transparent grey part) is actually a Grid (called Overlay) that is within the child window style.
So what you need to do is to handle its MouseLeftButtonDown event,
and in the code behind, you do
I also copied the style here just in case. 🙂