Can nonvisual WinForms controls be used from WPF?

Can nonvisual WinForms controls be used from WPF, as long as they are instantiated programmatically? I am comparing two sets of components that are only available for WinForms, yet we want to create WPF apps "going forward."

Upvotes: 0

Views: 178

Answers (1)

Rhyous
Rhyous

Reputation: 6680

Yes. If you reference the the correct dll any object from any assembly and namespace can be used. The big question is whether that is the right thing to do.

It would help tremendously if you mentioned which two sets of components you are referencing as we may know of a WPF only solution, hence saving you from having to reference WinForms.

Upvotes: 2

Related Questions