简体   繁体   中英

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 .

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM