Page 1 of 1

Refresh with residual shadows

Posted: Wed Jun 23, 2021 3:53 am
by hyetc
Shadow caused by dragging the form size。
Window maximization or minimization restoration can restore normal display

Re: Refresh with residual shadows

Posted: Wed Jun 23, 2021 8:53 am
by Arction_LasseP
Hello,

We tried to reproduce the effect seen in the image but couldn't do so. The chart behaved correctly when the form (window) was resized. Therefore, we would need more detailed instructions to reproduce the issue, or even a small test project.

One thing that can be tried is to subscribe to SizeChanged event, and call chart.FullRepaint() inside it. This forces an extra frame to be rendered when the form has been resized.

Code: Select all

_chart.SizeChanged += _chart_SizeChanged;

private void _chart_SizeChanged(object sender, EventArgs e)
{
    _chart.FullRepaint();
}
Best regards,
Lasse