Hello,
using the DescriptionAttribute to show the a description of a property doesn't wrap the text. Is there a workaround?
Using v16.1 + DarkMetroTheme
Hello Markus,
In order to wrap the text of the Description area for a property in the XamPropertyGrid, I would recommend that you include the default style for the PropertyGridDescriptionAreaControl. Since you are using the MetroDark theme, you will want to include the MetroDark default style for this control, which exists in the MetroDark.xamPropertyGrid.xaml file commonly found at the following directory:
C:\Program Files (x86)\Infragistics\2016.1\WPF\Themes\MetroDark\
Once you have included this style and its dependencies, there is a TextBlock in the default template of this element that is bound to the SelectedPropertyDescription path. This is the TextBlock that you want to modify, and if you set the TextWrapping property on it to "Wrap," the text of the description should wrap.
I have attached a sample project to demonstrate. I hope this helps.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Thanks, it is working.
Will this issue be fixed, in order no hack is required?
I have been discussing this issue with our development team, and being that the XamPropertyGrid was designed based on the Properties Window in Visual Studio, and that wraps its text by default, the modification to the PropertyGridDescriptionAreaControl will be implemented into the default style of the XamPropertyGrid.
To ensure that this issue receives attention, I have logged it in our internal tracking systems with a development ID of 246773. I have also created a private support case, which I will link to this issue so that you can be notified of any changes to it. This support case has an ID of CAS-189161-N2L6B9 and you can access it after signing into your account at https://www.infragistics.com/my-account/support-activity.