Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.

Posts

Sign In or Register to comment.