Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable text wrapping in CheckBox

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>
like image 869
sangeek Avatar asked Jan 26 '14 20:01

sangeek


1 Answers

<CheckBox>
    <TextBlock Text="Test Text" TextWrapping="Wrap"/>
</CheckBox>
like image 116
d.lavysh Avatar answered Oct 11 '22 15:10

d.lavysh