How to enable text wrapping in CheckBox

sangeek picture sangeek · Jan 26, 2014 · Viewed 7.6k times · Source

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>

Answer

d.lavysh picture d.lavysh · Jan 26, 2014
<CheckBox>
    <TextBlock Text="Test Text" TextWrapping="Wrap"/>
</CheckBox>