如何显示" Android的退格" - 在⌫标签 [英] How do I display "Android backspace" - ⌫ in Label
问题描述
我有一个标签
是绑定一个Xamarin应用
像这样:
<Label Text="{Binding BackSpace}"/>
和像这样在我的视图模型属性:
and a property in my viewmodel like so:
public string BackSpace
{
get
{
ResourceManager temp = new ResourceManager("MyProgram.ResourceStrings", typeof(MyClass).GetTypeInfo().Assembly);
result = System.Text.RegularExpressions.Regex.Unescape(temp.GetString("Backspace"));
}
}
现在我有一个元素我 ResourceStrings
名为退格
,我试图让与此相关的字符串这是我想成为键 Android的退格 code> -
⌫
now I have an element in my ResourceStrings
called Backspace
and I am trying to get the string associated with this key which I want to be the Android Backspace
- ⌫
所以最初我设置资源等于符号⌫
但这只是给了我,包括一个标签?
So initially I set the resource equal to the symbol ⌫
but this just gives me a label containing ?
现在我尝试将其设置为从的这里:&放大器;#x232b;
但是这给了我&放大器;#x232b;
Now I try set it equal to the HTML hex code from here: ⌫
but this gives me ⌫
我如何得到我的标签显示⌫
符号?
How do I get my label to display the ⌫
symbol?
PS - 即使我尝试:
PS. - Even if I try:
<Label Text="⌫"/>
我得到一个空白标签
I get a blank label
推荐答案
您需要将标签的字体更改为包含退格作为glyphicon字体。
You'll need to change your label's font to a font which contains backspace as glyphicon.
您将需要两件事情:
- 合适的字体。大概能登三世符号 https://www.google.com/get/noto/#sans -zsym 。 ⌫符号
- 标签渲染器,允许自定义字体。在这里看到: https://github.com/XLabs/Xamarin-Forms-Labs/维基/ ExtendedLabel
- Appropriate font. Probably Noto Sans Symbols https://www.google.com/get/noto/#sans-zsym. ⌫ symbol
- Label renderer which allows custom fonts. See here: https://github.com/XLabs/Xamarin-Forms-Labs/wiki/ExtendedLabel
这 Xamarin链接将提供在使用字体查看详细信息
This Xamarin link will provide more infomation on working with Fonts
这篇关于如何显示&QUOT; Android的退格&QUOT; - 在⌫标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!