napi15
napi15

Reputation: 2402

Xamarin.Forms String format not displaying binding information

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

Answers (1)

Bruno Caceiro
Bruno Caceiro

Reputation: 7179

You should use the Currency Format instead.

<Label Text="{Binding Price StringFormat='Price is = {0:C}'}" />

Upvotes: 5

Related Questions