22

How I can wrap text in CheckBox? The text is a bit longer than width of page, but I cannot shorten it. CheckBox doesnt have TextWrapping attribute. ;(
Also I tried to set Width="460", Width="*", but I didnt succeed.

<StackPanel>
    <CheckBox Content="Lorem ipsum dolor sit amet, consectetur adipisicing elit." />
</StackPanel>
brett rogers
  • 6,501
  • 7
  • 33
  • 43
sangeek
  • 223
  • 1
  • 2
  • 4

1 Answers1

44
<CheckBox>
    <TextBlock Text="Test Text" TextWrapping="Wrap"/>
</CheckBox>
d.lavysh
  • 1,404
  • 14
  • 23