This project is read-only.

Working with List<T>

Jul 25, 2012 at 9:46 PM
Edited Jul 25, 2012 at 9:47 PM

Hi everybody,

I cannot make the following class work with WPG.


    public class Person
        public string FirstName { get; set; }
        public string SecondName { get; set; }
        public int Age { get; set; }
        public List<Point> Curve { get; set; }

        public Person()
            Curve = new List();


    public class Point
        public double X { get; set; }
        public double Y { get; set; }


I went through all discussion, and kind of understand where I have to make changes. Spent whole day, with no result. Could anybody help me with it?

I tried to use approach with IList (from one of the discussions here), but it doesn't work with CollectionEditorControl...  Maybe I'm doing somethung wrong, maybe some required attributes are missing... Not sure. 

I also ready to use strong types instead of T, say this Point class can be hardcoded to WPG. It's not a problem for me (however it's not beautiful). I work on app where I need to represent only few different types. 

Thank you.