I am trying to change the crosshair color,Chartbackground,Axis Color and ChartText but am failing on 2 of them
I was following the lead on this example.
However I get different behaviours
1.ChartBackground and Axis pen brush work fine
2. Chart Text changes but then instantly reverts back to it's original color - so something else is taking over in on render I guess?
3.Crosshair color - I can't get to change at all! It simply makes the crosshair disappear.
Edit
if I put the ChartText change in ONrender it works fine. But this seems awfully inefficient?
Still no joy on the Crosshair color.
here is the code snippet that I am using in OnBarUpdate
if(State == State.Realtime)
{
ChartControl.Properties.ChartBackground = myBrushUp;
ChartControl.Properties.AxisPen.Brush = TrendColor;
ChartControl.Properties.ChartText = TrendColor;//flips color but doesn't sustain
ChartControl.Properties.CrosshairPen = "Red";//TrendColor;// crosshair disappears
}

Comment