I'm having trouble with my row details. How do I get text in a textblock to wrap so that the user doesn't have to scroll horizontally to view the details?
My Row Details Template is as follows:
If the Description is longer than the current width of the grid, I get scrollbars. No matter what I set the TextWrapping attribute to. How do I wrap the text to the width of the grid?
My Row Details Template is as follows:
<
StackPanel
Margin
=
"8,4"
>
<
TextBlock
Text
=
"Description:"
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding Description}"
FontStyle
=
"Italic"
TextWrapping
=
"WrapWithOverflow"
/>
</
StackPanel
>
If the Description is longer than the current width of the grid, I get scrollbars. No matter what I set the TextWrapping attribute to. How do I wrap the text to the width of the grid?