Trying to set the text Color after changing the color theme also has no effect. Changing the Fill however works:
Code: Select all
Chart.ColorTheme = ColorTheme.LightGray; Chart.ViewXY.YAxes.Title.Color = Colors.DeepPink; // This has no effect when ColorTheme is set above Chart.ViewXY.YAxes.Title.Fill.Color = Colors.Gold; // But this works
Without the change of ColorTheme the change of text color takes effect.
Is this a bug, or am I missing something?
A second question is that I would prefer being able to set colors directly in xaml, is that possible to do and also change ColorTheme?
Using version 18.104.22.168 semi-bindable, on .NET Core 3.1.
Edit: Some additional info is that there actually are two charts in the same user control, and ColorTheme is changed on both.
Edit 2: As I change things while developing sometimes the color actually gets set, but the pattern to it is not clear to me. Could it be some sort of race condition?
I also have the same problem with the Fill color for an AnnotationXY. Whether I set it in xaml or code-behind after changing ColorTheme, the color is simply ignored. I can however for example set the Fill color for instances of AxisYTitle and AxisXTitle used as AxisY.Units respectively AxisX.Units.