windowsformshost

WindowsFormsHost is always the most top from WPF element

隐身守侯 提交于 2019-11-26 17:33:29
问题 how to set the z-index windowsformhost that they are not always at the top of the WPF element ? 回答1: According to MSDN (Layout Considerations for the WindowsFormsHost Element) A hosted Windows Forms control is drawn in a separate HWND, so it is always drawn on top of WPF elements. This is a design limitation Another good article from MSDN that explains possible issues when using different graphical technologies in Windows is Technology Regions Overview However googling I found that there seem

Can I overlay a WPF window on top of another?

荒凉一梦 提交于 2019-11-26 17:31:13
问题 I have a WPF window, which contains a WindowsFormsHost element. I need to draw things on top of this element, but the nature of WindowsFormsHost means that it's always on the top of the drawing pile. As I cannot draw in the same WPF window on top of the WindowsFormsHost component, can I overlay another window on top of it? I've tried this in a rudimentary way, but I have a few problems: 1) I can't stop windows from other apps going in between the main window, and the overlay window. 2) When I