I have got the the active window of a UI thread with GetActiveWindow. I need to close the window if it is a WPF pop up window.
How can I determine whether the window is a wpf window or not?
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.
Use
HwndSource.http://msdn.microsoft.com/en-us/library/system.windows.interop.hwndsource.fromhwnd.aspx
As follows: