How to enable text wrapping in CheckBox

How can I wrap text in a checkbox? The text is slightly longer than the page width, but I can’t shorten it. CheckBox has no TextWrapping attribute .; (
Also I tried to set Width = "460", Width = "*", but I failed.

<StackPanel>
    <CheckBox Content="Lorem ipsum dolor sit amet, consectetur adipisicing elit." />
</StackPanel>
+4
source share
1 answer
<CheckBox>
    <TextBlock Text="Test Text" TextWrapping="Wrap"/>
</CheckBox>
+12
source

Source: https://habr.com/ru/post/1523811/


All Articles