问题
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