Hi,
Is there a way to make the DescriptionArea scrollable and to have the Text inside it wrap? Currently (15.1), the text does not wrap and is noticeable when property descriptions are quite large (see image).
Regards,
Tom.
Hello Tom,
I have been looking into your requirements and what I can suggest is making a small amendment in the default style targeting the PropertyGridDescriptionAreaControl type. In order to achieve scrolling in the text block containing the description we need to add the text block to a scroll viewer. The text wrapping in the text block is controlled by the “TextWrapping” property which should be set to “Wrap”.
If the wrapping of the text is enough you may use a style like the following one:
If the scrolling needs to be enabled as well then the default style which can be found in “generic.shared.xaml” should be changed.
I’ve implemented both approaches in the sample application I’m attaching for your reference.
If you have any further questions on the matter do not hesitate to contact us.
Thank you Galina, this solved my problem perfectly.
It's a small concern that the title in the Description Area still does not wrap, but right now it's not a problem for us
Thanks again,
Thank you for your feedback. If you need further assistance on the matter do not hesitate to contact us.