-
Hi guys, |
Beta Was this translation helpful? Give feedback.
Answered by
miloush
May 8, 2023
Replies: 1 comment 3 replies
-
Do you have a demo project? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What doesn't go together is WS_EX_LAYERED (a type of transparent window) and Win32 children windows (Winforms controls). In other words you can show WindowsFormsHost in a Popup, but it cannot be transparent in traditional WPF sense. You either disable transparency (
Popup.AllowsTransparecncy = False
), or, you use Win32 window rather than WPF window to host the popup, or, you use more complicated techniques likeSetLayeredWindowAttribute
API.Unfortunately for you, the Material Design is relying on the transparency to make popups with blurred edges. To see what I mean, in your sample project you can do this: