How to add a wpf usercontrol within a winforms usercontrol? Tried hosting the Wpf usercontrol using the element host as below.The added child control doesn't show at design and runtime.
public partial class WinformsUC: UserControl
{
public WinformsUC()
{
InitializeComponent();
try
{
var eH = new ElementHost {Dock = DockStyle.Fill, Child = new WpfUserControl()};
Controls.Add(eH);
}
catch (Exception exception)
{
Log.Debug(Constructor : " + exception.Message);
}
}
}