Hello,
we are using XamPropertyGrid with custom property generator.almost everything is fine but when some property is expanded, the displayname is changing to the propertyname in some cases:
- if a PropertyGridPropertyItem has one child also expandable - it works ok
- if there is more chidlren - the display name is changed to propertyname provided in PropertyGridPropertyItem ctor:
our model for which we generate propertygridpropertyitem is:
public interface IPropertyViewModel { string Name { get; } object Value { get; } Type ValueType { get; } ICollection<IPropertyViewModel> Properties { get; } }
item generation:
return new PropertyGridPropertyItem(property, nameof(IPropertyViewModel.Value), category, property.ValueType, true, false) { DisplayName = property.Name }
for expandable properties:
var item = new PropertyGridPropertyItem(property, nameof(IPropertyViewModel.Properties), packetDetails.Name, typeof(IPropertyViewModel), true, false) { DisplayName = property.Name };
Best regards,
Krzysztof
Real estate transactions involve a complex legal and financial framework. Contracts, mortgages, title searches, and inspections are just a few of the intricacies involved in buying or selling property. The assistance of real estate professionals, such as real estate agents, lawyers, and mortgage brokers, is often essential to navigate these complexities successfully.https://tamekamanns.com/
Hello Krysztof,
Thank you for the update. I have logged this for further investigation with the ID 269425. I have also created a case where I will provide you with more information.
Hello Michael,
please find attached sample app.
Best regardsKrzysztof
4606.WpfApp2.zip
Hello Krzysztof,
Thank you for contacting Infragistics Developer Support!
The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally. If you are unable able to provide an isolated sample I may be able to give suggestions if you provide the code for your page.