using System.Windows.Forms.Integration; //Assembly: WindowsFormsIntegration (in WindowsFormsIntegration.dll)
ElementHost elementHost = new ElementHost(); elementHost.Dock = DockStyle.None; elementHost.Child = wpfControl;
Now, add the instance of ElementHost to a container control in your windows form (for instance containerPanel here)
containerPanel.Controls.Add(elementHost);
No comments:
Post a Comment