I need to host win32 windows in my WPF window, but I need them to act like user controls. Other controls need to be able to appear on top of them, and they should be able to be put into tab controls and such. Is such a thing possible?
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.
Not directly. Airspace issues apply here, which prevents you from using the HWND (Win32) window directly like you would other content.
There are various workarounds, such as this AirspaceOverlay control. These function by creating a separate WPF
Windowwithout chrome, and “overlaying” it on top of your HWND, moving it as needed.