Windows 8 XAML multi-column text

丶灬走出姿态 提交于 2019-12-07 05:23:40

问题


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:

Thanks!


回答1:


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




回答2:


The component is called RichTextColumns which should be in the Common folder of your default project directory structure.




回答3:


For a windows 8.1 Check out the samples from msdn:

http://code.msdn.microsoft.com/windowsapps/XAML-text-display-sample-2593ba0a/sourcecode?fileId=58034&pathId=615966648



来源:https://stackoverflow.com/questions/10162125/windows-8-xaml-multi-column-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!