How do you set LayerLegend font color?

11-08-2020 03:37 PM
New Contributor II

Hello, we have a legend view in our C# app that uses the Esri.ArcGISRuntime.Toolkit.Xamarin.Forms.LayerLegend class. Everything is working fine except the text for the legend is black, which becomes invisible when using the app in night mode. How do we set the font color of the LayerLegend controls? I would have expected there to be a property like FontColor but there isn't one.

Tags (2)
0 Kudos
1 Reply
MVP Regular Contributor

You don't mention what platform.  But I believe that LayerLegend has a Bindable ItemsTemplate which could be used to change the text color.  I do not know if this is available in Xamarin Forms, it is in WPF

0 Kudos