Forum Xamarin.Forms

SetBinding a Boolean to display it localised

ajmenaajmena ESMember ✭✭

I want to bind a label with a Boolean and display the value localised in Spanish like "Sí/No" instead of "True/False"
I'm trying this, but doesn't work:
Label1.SetBinding(Label.TextProperty, new Binding(path: "MyBooleanValue", stringFormat: "{0:Sí;No}"));
This still displays True/False.

Any ideas of how to accomplish this?
Thank you.


Sign In or Register to comment.