Hello,
Question:
I have a WPF control hosted in a WinForms application with the use of the ElementHost.
I’m hosting the WPF DatePicker control.
Everything works great, except when I resize any control in design mode a Child instance is created by the “designer generated code” in the InitializeComponent method.
Child = new MyControls.WPFDatePicker();
The application doesn't compile after the Child instance is created. Any clues?
Edit: More info: The Winform application originates from .Net 1.1 so all the GUI-auto generated code is located in the .CS file.