top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to programmatically wrap the TextBlock Text?

+1 vote
65 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...