Leonid
Leonid

Reputation: 1091

Is it possible to draw WPF control over HwndHost control?

Is it possible to draw control over HwndHost control?(I don't want to use popups)

This HwndHost control draws over any WPF control. As I understand it doesn't depend on ZIndex.(because HwndHost control is drawn by COM)

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

enter image description here

Upvotes: 7

Views: 2575

Answers (1)

Mark Hall
Mark Hall

Reputation: 54532

To answer your question, no. See this MSDN article on WPF and Win32 Interoperation.

From above article:

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

Upvotes: 7

Related Questions