小编bao*_*ui 的帖子

如何在wpf文本块中的一行中显示文本

我是wpf的新手,我想在wpf文本块中的一行显示文本.例如.:

<TextBlock 
    Text ="asfasfasfa
    asdasdasd"
</TextBlock>
Run Code Online (Sandbox Code Playgroud)

TextBlock默认显示两行,

但我只想在一行中像"asafsf asfafaf"一样.我的意思是在一行中显示所有文本,即使文本中有多行,
我该怎么办?

wpf textblock

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

textblock ×1

wpf ×1