Open GoogleCodeExporter opened 8 years ago
You haven't told it to serialize any members...? after `.Add(...)` you can use
more `.Add(...)` to tell it about members to include.
Original comment by marc.gravell
on 8 May 2012 at 6:19
Really. Was focusing on brushes, but forgot to add Color's properties. Changed
configuration as follows and everything's worked.
RuntimeTypeModel.Default.Add(typeof(SolidColorBrush), false)
.Add("Color");
RuntimeTypeModel.Default.Add(typeof(Color), false)
.Add("A", "R", "G", "B");
Thanks for your help.
Original comment by olexande...@gmail.com
on 8 May 2012 at 9:29
For me, it still shows the error message "Cannot apply changes to property
System.Drawing.Color.A". A is a read-only property.
Any comments? Thanks.
Original comment by liuhuim...@gmail.com
on 11 Jan 2013 at 3:19
@liuhuimiao validated; works fine. Are you using WPF brushes? or System.Drawing
brushes? or something else? what framework version are you using?
Original comment by marc.gravell
on 11 Jan 2013 at 7:54
Original issue reported on code.google.com by
olexande...@gmail.com
on 7 May 2012 at 2:55