Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
DescriptionArea Scrollable and TextWrap enabled
posted

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.

xamPropertyGrid-DescriptionAreaProblem

Parents
  • 3520
    Verified Answer
    Offline posted

    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.

    PropertyGridSample.zip
Reply Children