Dear support team,
I have moved one step closer to a solution. I can now see the properties.
- I add [TypeConverter(typeof(ExpandableObjects))] above the class that was bound to the propertygrid.
- Also I decorated the class that was bound to the propertygrid with category and property names, as such:
[CategoryAttribute("Identity")]
[DisplayNameAttribute("Names")]
[DescriptionAttribute("Name information of the selected contact.")]
I also found this syntax:
[Display(Description = "Id of the address", GroupName = "Address", AutoGenerateField = true)]
I am unsure which is better.
- Since I am using Caliburn Micro, I had to make the class inherit from Screen - that made it possible to expand the properties. See attached screenshot:
Although I can now see and edit my properties
- I still see some information that I would like to hide (the class information under misc). And also the class displayname is still shown in the grid (see hightlights in the attached image). How do I hide that information?
- Do you have an example that shows how to localize the property grid for different languages - including a localized category attribute?
- Is it possible to expand all properties by default
- Is it possible to search through all properties - also on the properties that are nested in an object?
Kind regards,
Niels van Strien
Attachment:
InkedpropertyGrid_LI_426a140.7z