Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to draw WPF control over HwndHost control?

Tags:

c#

.net

wpf

com

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

like image 356
Leonid Avatar asked Jan 30 '12 13:01

Leonid


1 Answers

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

like image 78
Mark Hall Avatar answered Oct 02 '22 01:10

Mark Hall