How to Text Wrap a Label in WPF?

WPF does not allow text wrapping for label control.Thus to wrap a label with a fixed width,we have to place the TextBlock control inside the label control and set its TextWrapping property to “Wrap”.

<Label Width=”50″>
<TextBlock TextWrapping=”Wrap”> I am label with width 50</TextBlock>
</Label>

Popularity: 9% [?]

Related posts:

  1. Click Label to Access Form Control
  2. Convert Text to Image using c#
You can leave a response, or trackback from your own site.

One Response to “How to Text Wrap a Label in WPF?”

  1. raj says:

    My project contains thousand of labels. now i need to use Wraping feature which is not in labels. what should i do?????

    changing Labels into textblock will cause a heavy problem…

    Great Work of MICROSOFT.. sala pareshan kar ke rakh deta hai is ke products..

Leave a Reply

Designed by: Business Web Hosting | Thanks to Buy Icons, travel tips and Used Cars