This project is read-only.

Default values for new properties added to a part

Topics: Writing modules
Oct 17, 2012 at 7:44 PM

For any content part it's possible to use the OnInitializing method of a ContentHandler to give its properties default values.

But when an existing module is modified and new properties are added to parts, I need a way initialize just these newly added properties.

OnInitializing won't work, because Loading (of the StorageFilter) comes after this and will overwrite the values set in OnInitializing.

Does anyone have a good solution for this situation?

Jan 4, 2013 at 6:56 PM

If it's just primitives then perhaps set the values in the constructor of the part?