Text stretch in WPF TextBlock?

Use a layout or render transform to scale your text in the X or Y direction depending on what you want.

Up vote 1 down vote favorite share g+ share fb share tw.

Wpf text formatting textblock link|improve this question edited Jun 8 '11 at 17:51H.B.43.4k61646 asked Jun 8 '11 at 16:31user679530804 81% accept rate.

If you want a 'stretch to fit' type of behavior, check out ViewBox. – Dan Bryant Jun 8 '11 at 18:04.

Use a layout or render transform to scale your text in the X or Y direction depending on what you want LayoutTransform causes the scale to be applied prior to the layout pass which means the element is rendered with the scaled size taken in to account. Whereas the RenderTransform applies the scaling after the layout pass so the element is spaced at normal size then the scale is applied. Something like.

To stretch text over the entire control and make it narrower, I use ViewBox and Layout Transform.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions