delete
delete

Reputation:

How can I use a WPF control inside a Windows Forms Panel control?

Is it possible?

I'd like to use this control inside of a panel in my C# Winforms application. Any suggestions?

Is such a thing possible? I'm using .NET 3.5; thanks!

Upvotes: 1

Views: 2206

Answers (2)

Jackson Pope
Jackson Pope

Reputation: 14640

You need to add an ElementHost control to your winforms panel and put the WPF control in there. See here for more details: http://blogs.msdn.com/b/calvin_hsia/archive/2007/12/11/6740119.aspx

Upvotes: 3

SLaks
SLaks

Reputation: 887453

You're looking for the ElementHost control.
You'll need to make a WPF UserControl that wraps the control, then put it in an ElementHost.

Upvotes: 3

Related Questions