The WPF Label control is powerful, but if you simply set Content property to a string, it will not wrap on multiple lines. What to do? Use TextBlock:
<Label >
<TextBlock TextWrapping=”Wrap”>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi a est libero. Nulla quis purus in est suscipit fringilla. Aliquam.
</TextBlock>
</Label>
Notice TextWrapping property on TextBlock which specifies that text should wrap.
And if you need to use access key in label then wrap text into the AccessText instead like so:
<Label >
<AccessText TextWrapping=”Wrap”>
_Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</AccessText>
</Label>
I did not know about the existance of AccessText control until now. Thanks
No problem, glad to help 🙂