Recent comments
- 3D rendering supports
2 weeks 2 days ago - Event handlers vs. control properties
8 weeks 4 days ago - MVVM and NavigationModel for Windows Forms
8 weeks 4 days ago - MVVM and NavigationModel for Windows Forms
8 weeks 5 days ago - MVVM and NavigationModel for Windows Forms
8 weeks 6 days ago - Precedent
11 weeks 4 days ago - This description is not complete...
11 weeks 5 days ago - Data type validation
12 weeks 4 days ago - Momentos?
12 weeks 5 days ago - Domain/storage/navigation/view model
13 weeks 18 hours ago

Comments
Update Controls, generic lists and XmlSerializer doesn't work
The Stores variable in the following class does not get xml serialized. Changing IEnumerable to List corrects the problem, but breaks binding. I cannot find a solution short of writting a complete custom serializer. I will have to use INotifyPropertyChanged for these classes if a solution does not exist.
public class Customer stores = new List();
{
private List
private Independent _indStores = new Independent();
public IEnumerable Stores
{
get { _indStores.OnGet(); return stores; }
}
}
public static void SerializeToFile(object theObject, string OutFile)
{
if (theObject == null)
return;
XmlSerializer serializer = new XmlSerializer(theObject.GetType());
StringBuilder sb = new StringBuilder();
using (StringWriter sw = new StringWriter(sb))
{
serializer.Serialize(sw, theObject);
}
File.WriteAllText(OutFile, sb.ToString());
}