Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WindowsFormsHost is always the most top from WPF element

how to set the z-index windowsformhost that they are not always at the top of the WPF element ?

like image 686
Andy Kurniawan Avatar asked Mar 29 '12 06:03

Andy Kurniawan


Video Answer


1 Answers

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 to be some hackings for this (known as airspace restriction)

One hack (never tried it personally so not sure if it works) is at this link

like image 136
Klaus78 Avatar answered Sep 23 '22 22:09

Klaus78