Windows 8 XAML多列文字 [英] Windows 8 XAML multi-column text
问题描述
有没有一种方法可以在文本中添加列? 我有一个大字符串,必须显示文本,并且文本块的高度固定,并且必须使文本显示在列中. 像这样的图片:
Is there a way to make columns in a text? I have one big string with the text i have to display, and i have a fixed height of the textblock, and have to make the text display in column. like this image:
谢谢!
推荐答案
您是否看过默认解决方案模板的"common"文件夹? IIRC中有一个名为ColumnTextBlock(或类似名称)的控件,可以为您完成此操作.如果它不在您使用的默认模板中,请尝试创建一个新的网格应用程序并在其中查找-它会在项目详细信息XAML页面中使用.
Have you looked in the "common" folder of the default solution templates? IIRC there is a control named something like ColumnTextBlock (or something similar) in there that does this for you. If it isn't in the default template you use, try creating a new grid application and look in there - it gets used in the item detail XAML page.
HTH
这篇关于Windows 8 XAML多列文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!