【问题标题】:xamarin forms, add £ to labelxamarin 表单,在标签中添加 £
【发布时间】:2020-04-04 23:41:16
【问题描述】:

我的标签:

 <Label Grid.Column="5" Grid.Row="2" VerticalOptions="Start" Text="{Binding SubTotalForItems}"/>

显示正确的小计,例如 3.44

如何在前端添加 £?

类似 Text="£ + {Binding SubTotalForItems}"

?? 谢谢

【问题讨论】:

    标签: c# html xamarin.forms label


    【解决方案1】:

    使用StringFormat

     <Label Text="{Binding SubTotalForItems, StringFormat='£{0}'}" />
    

    【讨论】:

      猜你喜欢
      • 2017-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-20
      相关资源
      最近更新 更多