如何使用 Xaml 在 Xamarin Forms 中向标签添加上标 [英] How do you add superscript to a label in Xamarin Forms using Xaml
本文介绍了如何使用 Xaml 在 Xamarin Forms 中向标签添加上标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 Xaml 在 Xamarin Forms 中向标签添加上标.具体来说,我想为商标添加一个 TM 上标.
How do you add superscript to a label in Xamarin Forms using Xaml. Specifically, I would like to add a TM superscript for trademark.
推荐答案
正如 Chris 在评论中提到的,您可以使用 unicode 字符 ™
(™)
As Chris mentioned in the comment you can use the unicode character ™
(™)
如果你想做任何复杂的事情,你应该使用CustomeRenderer
You should use the CustomeRenderer if you want to do anything complex
这篇关于如何使用 Xaml 在 Xamarin Forms 中向标签添加上标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文