SpongeBob SquarePants
SpongeBob SquarePants

Reputation: 1055

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

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.

Upvotes: 2

Views: 1721

Answers (2)

Towhid
Towhid

Reputation: 2084

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

Upvotes: 0

Dan Puzey
Dan Puzey

Reputation: 34198

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.

Upvotes: 6

Related Questions