1
Vote

Screens added to ScreenManager may have their BackColor set to Black

description

The ScreenManager serializes properties for screen instances. If a screen has a property set to a non-default value, that value may be serialized in the screen manager class and set at startup. This overrides any setting in the screen's constructor/InitializeComponent. You can see the problem if you later change the property value on the Screen's instance in the screen designer - at runtime, the value will come from ScreenManager.
 
The ScreenManagerDesigner needs to wrap all properties to provide default values, similar to ParticleSpriteDesigner. That will allow the user to edit screen properties in the screen manager, but not serialize values that were set in the screen designer.

comments