Justify Text in Windows Phone

0

I have an application that the text is displayed in a textBlock and I want to make this text justified, already tried to put the alignment of the text as justified, but it was not, it says that the method is not supported.

I've been answered before with the link to this article ( link ), but it did not work.

There is some other component for Windows Phone that accepts justified text, if someone can help me I'll be very grateful, I need to fix this in my app;

Thank you in advance. Thanks

    
asked by anonymous 15.05.2015 / 04:51

1 answer

0

I'm not very aware of xaml , but as per the response in SOen

You can use RichTextBox to achieve the desired effect:

<RichTextBox TextAlignment="Justify" IsReadOnly="True">
    <Paragraph>
        Coloque o seu texto aqui
    </Paragraph>
</RichTextBox>

Note that in Desktop applications the problem does not appear to occur with TextBox

<TextBlock Text="Coloque o seu texto aqui"
           TextWrapping="Wrap"
           TextAlignment="Justify"></TextBlock>
    
15.05.2015 / 04:59