Hi Dag!
Actually the Properties collection will not store any state, it will only take care of the rendering of the PropertyData contained in it. You will be responsible for storing and loading the state yourself, using the State property in IDynamicContent.
Basically, what you need to do is to fetch the data from Properties in the get part of the State accessor and save it in the state string. Then you would need to, in the set part, refill the Properties collection with the values from the state string.
Here is a link to a more detailed guide on how you can work with the settings for dynamic content.
http://sdk.episerver.com/library/cms5/Developers%20Guide/How%20To/Create%20Dynamic%20Content.htm
Regards
Per Gunsarfs
EPiServer CMS development team
I have some trouble making my Dynamic Content control remembering the property setting that the user chooses when creating the control in the editor with the {} button. The "add" window pops up and gives me the dafault values I have set programatically, but as soon as I press "OK" and then pop up the same dialog again, the new values are gone, being replaced by the default values.
This my Properties property method:
I guess there is something wrong here - but I cannot find any examples showing the use of more than one property.