Justify text with TextAlignment in Windows Phone 8

1

I am making an application and in this application I have a textBlock that in .xaml is as follows:

 <TextBlock Name="tDetalhes"  Foreground="Black" FontSize="26" VerticalAlignment="Center" Height="210"  TextWrapping="Wrap" />

But I want to leave the text of this textBlock justified, but I've been adding the TextAlignment="Justify" property of the following error:

  

"Specified method is not supported"

I tried to add by code .cs and neither was it. If anyone knows how to solve the error, I'll be grateful. Thanks

    
asked by anonymous 01.04.2015 / 04:51

1 answer

0

As the message says, Justify is not supported in textBlock . According to this MSDN page this value is not valid in Silverlight 3.

Alternatively, you can use the control RichTextBox .

    
02.04.2015 / 01:30