Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To use multiline textblock in wp7?

i wants to display my text in to multiline with use of textblock.i have one textblock and it text property is binding with webservices.and run time textblock display on long single line.but i wants to devide this single line in to multiline. so what i can do? i also use text wrraping property but it is not working.

and my XMAL Code is

 <TextBlock FontSize="22" Text="Address:"  Height="Auto"/>
<TextBlock FontSize="22" Text="{Binding Address}" Height="Auto" Width="Auto" TextWrapping="Wrap" Margin="49,0,0,0" /> 
like image 488
Mansinh Avatar asked Jul 18 '12 11:07

Mansinh


1 Answers

Remove the Height="Auto" Width="Auto" .Set fixed values and then set TextWrapping="Wrap"

like image 129
alfah Avatar answered Oct 14 '22 07:10

alfah