2
我有一个自定义FiancialCell工作,但不格式化为货币。是否有另一种方法来更改绑定格式,以便它是$?Xamarin表单自定义单元货币格式?
public FinancialCell()
{
.......
//Set the bindings to the FinancialRow object to be bound to this
lblTitle.SetBinding(Label.TextProperty, "Title");
///Why does this not format to $ when displayed?
lblValue.SetBinding(Label.TextProperty, "Value", stringFormat: "C");
this.View = stack;
}
工作得非常好,谢谢! – meanbunny