Reputation: 2402
I am trying to display Product prices in a string format in Xamarin Forms:
Text="{Binding Price, StringFormat=' Price is {0:$}'}"
Output:
Price is $
what I am doing wrong and why the binded price is not displaying?
Upvotes: 0
Views: 9211
Reputation: 7179
You should use the Currency Format instead.
<Label Text="{Binding Price StringFormat='Price is = {0:C}'}" />
Upvotes: 5