积极答复者
请教TextBlock中文本的对齐问题

问题
答案
-
您好 jxk,
我记得TextBlock的TextAlignment属性有一个枚举值是两端对齐。您可以参考下面的xaml:
<TextBlock TextAlignment="Justify" Text="我是一个中国人" Width="200"/>
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.- 已标记为答案 Aland LiModerator 2010年8月25日 7:24
全部回复
-
您好 jxk,
我记得TextBlock的TextAlignment属性有一个枚举值是两端对齐。您可以参考下面的xaml:
<TextBlock TextAlignment="Justify" Text="我是一个中国人" Width="200"/>
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.- 已标记为答案 Aland LiModerator 2010年8月25日 7:24