I have an application in which the Main Window ('ECMOSimulator') is a DocumentContainer component.
It is populated with elements - all of which are 'UserControls' (eg 'ECMOSystem').
How do I instantiate such an element programmatically and then set it's size?
The snippet below opens the element in the container, but does not set the Height and Width.
ECMOSystem ecmoDevice = new ECMOSystem();
ecmoDevice.Height = 400;
ecmoDevice.Width = 800;
ECMOSimulator.Items.Add(ecmoDevice);
Andy Pybus