Wpf Control with WindowsFormsHost overrides MainWindow

319 views Asked by At

I have MainWindow with ScrollViewer inside a Grid. The ScrollViewer contains UserControl that is used to display a list of items and scroll inside the bounds of the MainWindow Grid.

The problem is when I scroll the content the WindowsFormsHost is rendered in top of the MainWindow outside the MainWindow/Grid bounds.

How can I render the WindowsFormsHost inside the MainWindow Grid?

Thank you.

1

There are 1 answers

0
tweant On

Every control from WindowsForm ms is rendered always on top. You cannot do anything about that. I had the same problem with WebBrowser as it is WindowsForms control it overrided my notifications. As I result I was forced to search for alternatives such as Chromium for .NET.