WPF/Silverlight XAML Stretch Text Size to Fit container?

后端 未结 4 1067
灰色年华
灰色年华 2020-12-30 22:42

I\'ve just started to play with WPF.

Is it possible to have the size of the text of a Label or TextBlock size itself to fill it\'s parent container?

Thanks,

4条回答
  •  别那么骄傲
    2020-12-30 23:30

    Depends on the parent container

    Grid, DockPanel will stretch your control StackPanel, WrapPanel will leave it to the control to size itself..

提交回复
热议问题