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

后端 未结 1 1507
谎友^
谎友^ 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:

    
    

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

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