Forum Xamarin.Android
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.

Weird behaviour -> label.SetBinding(Label.TextColorProperty,...)

Hey, i was trying to make dynamic color changing and i get stuck with sth very weird.

MyPage

titleLabel.SetBinding(Label.TextColorProperty, new Binding("Titlecolor"));

MyModel

var myItem = new myItem
{
Titlecolor = Xamarin.Forms.Color.Red,
}

MyClass

public classmyItem
{
public Xamarin.Forms.Color Titlecolor { get; set; }
}

When i debug it works inside MyModel but when i get it by myPage it seems titleLabel.textcolor doesnt see any changes ( R=-1 B=-1 G=-1 )
What could be wrong with my implementation ? Did i forget sth ?

Sign In or Register to comment.