Jul 09, 2008 07:08 AM|wullie|LINK
I worked out what I had to do. I need to implement the attribute <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _ on any properties that expose an object so that the delarative syntax exposes the contents of the object, rather
than for the object itself.
A combination of this and the PersistenceMode attribute mentioned by Peter above extend it to allow properties to defined just like a template property. The code ended up looking like so.
Public ReadOnly Property ItemStyle() As Style
If _editRowStyle Is Nothing Then
_editRowStyle = New Style
You can find out more about the attribute with the link below.