internal void GenerateInitCode(GeneratorContext ctx, CodeExpression var)
{
// Set the value for initialization properties. The value for those properties is
// usually set in the constructor, but top levels are created by the user, so
// those properties need to be explicitely set in the Gui.Build method.
foreach (PropertyDescriptor prop in ClassDescriptor.InitializationProperties) {
GeneratePropertySet (ctx, var, prop);
}
}