ListView item text colour not setting

I'm trying to set the TextColor property of my ListView items. Rather than writing a CustomRenderer, I've opted to use the below method of doing this.

var template = new DataTemplate(typeof(TextCell));
template.SetValue(TextCell.TextColorProperty, Color.Black);

ListView filesView;
filesView = new ListView { BackgroundColor = Color.White };
filesView.ItemTemplate = template;
filesView.ItemSelected += (object sender, SelectedItemChangedEventArgs e) =>


However, rather than going from the pink/red colour that it was by default, the text is now either white, or not displaying at all as I cannot see anything on the item.

Why would this be - is there something wrong with my code?

Best Answer


Sign In or Register to comment.