xamarin 表格,在标签中添加 £
xamarin forms, add £ to label
我的标签:
<Label Grid.Column="5" Grid.Row="2" VerticalOptions="Start" Text="{Binding SubTotalForItems}"/>
显示正确的小计,例如 3.44
如何从前端在开头添加一个 £?
类似于 Text="£ + {Binding SubTotalForItems}"
??
谢谢
<Label Text="{Binding SubTotalForItems, StringFormat='£{0}'}" />
我的标签:
<Label Grid.Column="5" Grid.Row="2" VerticalOptions="Start" Text="{Binding SubTotalForItems}"/>
显示正确的小计,例如 3.44
如何从前端在开头添加一个 £?
类似于 Text="£ + {Binding SubTotalForItems}"
?? 谢谢
<Label Text="{Binding SubTotalForItems, StringFormat='£{0}'}" />