Can I use a WPF control in WinForms to achieve transparency effects?

1.7k views Asked by At

Is it possible to use WPF in WinForms, to implement the idea used in this question. I am trying to create a semi-transparent panel.

2

There are 2 answers

7
Dan Puzey On BEST ANSWER

Technically yes - there are ways of hosting WPF in WinForms using ElementHost.

However, you're likely to run into problems with the transparency. WPF's rendering is different to WinForms and, while you can make the WPF control transparent, the WinForms underneath aren't going to respect that.

1
Towhid On

You can use Opacity property of your WinForm to make it semitransparent.