Is it possible to draw WPF control over HwndHost control?

Can I control the HwndHost control? (I do not want to use popups)

This HwndHost control uses any WPF control. As far as I understand, this is not dependent on ZIndex. (Because HwndHost control is drawn by COM)

If you want to play with this control, you can get more information about it and download samples here .

enter image description here

+6
source share
1 answer

To answer your question, no. See the MSDN article on the interaction of WPF and Win32.

From the above article:

• HwndHost will appear on top of other WPF elements in the same top-level window. However, the created ToolTip or ContextMenu menu is a separate top-level window, and therefore will behave correctly using HwndHost

+6
source

Source: https://habr.com/ru/post/907233/


All Articles