简体   繁体   中英

How can I use the Typography.NumeralAlignment Property on a WP7 textblock?

I have a text block that should display numbers in this format

版式:数字对齐:管状

This is supposed to be accomplished via Typography.NumeralAlignment property set to "Tabular" but how do I apply this to a Textblock in a Windows Phone 7 application.

This is only supported in SL5 and WP7.1 is based on SL4. I don't know of alternatives, sorry.

http://msdn.microsoft.com/en-us/library/system.windows.documents.typography.numeralalignment(v=vs.95).aspx

To get this to work in SL4, you will need to essentially implement it yourself..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM