TextBlock.TextWrapping - how to make the text wrap so that the lines are center-aligned?

后端 未结 1 1506
谎友^
谎友^ 2021-01-01 10:30

In a Windows Phone 7 application, when I place a TextBlock in the grid and set its HorizontalAlignment to \"Center\" and its TextWrapping

相关标签:
1条回答
  • 2021-01-01 10:44

    You are probably missing TextAlignment:

    <TextBlock TextAlignment="Center" />
    

    HorizontalAlignment will center the TextBlock, TextAlignment will align the text inside the textblock.

    0 讨论(0)
提交回复
热议问题