top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to programmatically wrap the TextBlock Text?

+1 vote
195 views

how to wrap text in C#......

posted Nov 11, 2014 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

In C#:

this.textBlockWrapped.TextWrapping = TextWrapping.Wrap;

In XAML CODE:

<TextBlock x:Name="textBlockWrapped" TextWrapping="Wrap" Text="This is a very long text in a TextBlock     
that should be wrapped."/>
answer Nov 12, 2014 by Jdk
...