Ran into an issue with chart control. With DirectX disabled, the problem does not exist.
Have a chart control, we enable cross hairs as follows:
chartControl1.CrosshairEnabled = DevExpress.Utils.DefaultBoolean.True;
chartControl1.CrosshairOptions.ShowArgumentLine = true;
chartControl1.CrosshairOptions.ShowValueLine = true;
chartControl1.CrosshairOptions.ArgumentLineColor = Color.Green;
chartControl1.CrosshairOptions.ValueLineColor = Color.Blue;
chartControl1.CrosshairOptions.ArgumentLineStyle.DashStyle = DashStyle.Dot;
//chartControl1.CrosshairOptions.CrosshairLabelMode = CrosshairLabelMode.ShowCommonForAllSeries;
chartControl1.CrosshairOptions.CrosshairLabelMode = CrosshairLabelMode.ShowForNearestSeries;
chartControl1.CrosshairOptions.SnapMode = CrosshairSnapMode.NearestArgument;
chartControl1.CrosshairOptions.HighlightPoints = true;
The chart is in a control that has another side panel. If we collapse that panel, or the chart changes size in any way, the chart control FLICKERS and RESIZES like crazy when the mouse is moved over the chart.
What I have done temporarily is handle the ClientSizeChanged event and DISABLE the crosshairs. Then handle the Paint event and ENABLE the cross hairs and it seems to work.
Please fix ASAP as we need to push a release version out and I don't like this hack as it may not work in all situations, but I did it to prove the solution to the flicker.
Show all comments