How to host WPF Controls in Windows Forms?

 Posted by Shantanupatel on 3/6/2012 | Category: WPF Interview questions | Views: 3759 | Points: 40

1) Add reference to the following:
a) Presentation Core
b) Presentation Framework
c) WindowsBase
d) WindowsFormsIntegration
e) System.Xaml
2) Also add reference to the WPF control DLL.
3) Use the 'ElementHost' control in 'WPF Interoperability' tab in Toolbox to host WPF controls.

Source: Interview | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response