This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, In my application, I am trying to select multiple objects of same type and edit their properties in propertygrid. I have a class A that has the custom attribute (MyAttribute) applied to expose properties (e.g. Option) in order to get lookup values from database and display in PropertyGrid as a dropdown. It works fine for a single object (PropertyGrid.SelectedObject), but when I try to set the SelectedObjects property to an array of the type A then it ignores the TypeConverter, ProjectItemTypeConverter doesn't get called. Did I miss something? What's the proper way to customize properties are exposed for an array of objects? Thanks public class MyAttribute : Attribute public class ProjectItem: ICustomTypeDescriptor public class ProjectItemDescriptor : PropertyDescriptor public class ProjectItemTypeConverter : TypeConverter public class A : ProjectItem |
|
|
Hello yxian You did not miss anything - this was a bug in the PropertyGrid. We have now fixed this issue which you can get through the next nightly build. The next nightly build will be available at around 1200 GMT ( about 12 hours from now). You can download nightly builds from here: http://www.mindscapehq.com/products/wpfelements/nightly-builds Jason Fauchelle |
|
|
Problem Solved! Thanks. |
|