I've created a user control in a Windows Application C# 3.5 and it has a number of properties (string, int, color etc). These can be modified in the properties window and the values are persisted without problem.
However I've created a property like
public class MyItem
{
public string Text { get; set; }
public string Value { get; set; }
}
public class MyControl : UserControl
{
public List<MyItem> Items { get; set; }
}
The properties dialog allows me to add and remove these items, but as soon as I close the dialog the values I entered are lost.
What am I missing? Many thanks!