Is there any way to show dynamic properties of custom objects in the propertygrid. For example if I have the following code:
```
public class Student
{
List<SchoolClass> availableSchools;
[PropertyGridBrowsableAttribute(true)]
string Name { get; set; }
[PropertyGridBrowsableAttribute(true)]
public SchoolClass School { get; set; }
}
public class SchoolClass
{
string SchoolName { get; set; }
string Location { get; set; }
}
```
I want to be able to see a drop down list of all the possible schools(which could change at runtime) by name, and when selected it would choose the correct object. I'm wanting to achieve similar behaviour to what the itemssource class achieves, but to be able to define the source at runtime. For example I would have an item with a display value of 'SchoolName' and the value being the instance of the 'SchoolClass'.
Thanks.
Comments: No feedback from user.
Has explained in: https://wpftoolkit.codeplex.com/workitem/19208
Since v2.0, you can provide editors at runtime.
Please ask for reopen if needed
```
public class Student
{
List<SchoolClass> availableSchools;
[PropertyGridBrowsableAttribute(true)]
string Name { get; set; }
[PropertyGridBrowsableAttribute(true)]
public SchoolClass School { get; set; }
}
public class SchoolClass
{
string SchoolName { get; set; }
string Location { get; set; }
}
```
I want to be able to see a drop down list of all the possible schools(which could change at runtime) by name, and when selected it would choose the correct object. I'm wanting to achieve similar behaviour to what the itemssource class achieves, but to be able to define the source at runtime. For example I would have an item with a display value of 'SchoolName' and the value being the instance of the 'SchoolClass'.
Thanks.
Comments: No feedback from user.
Has explained in: https://wpftoolkit.codeplex.com/workitem/19208
Since v2.0, you can provide editors at runtime.
Please ask for reopen if needed