Refresh with residual shadows

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
hyetc
Posts: 11
Joined: Fri Oct 09, 2020 9:26 am

Refresh with residual shadows

Post by hyetc » Wed Jun 23, 2021 3:53 am

Shadow caused by dragging the form size。
Window maximization or minimization restoration can restore normal display
Attachments
残影截图.png
残影截图.png (153.11 KiB) Viewed 2088 times
normaldisplay.jpg
normaldisplay.jpg (147.11 KiB) Viewed 2088 times

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Refresh with residual shadows

Post by Arction_LasseP » Wed Jun 23, 2021 8:53 am

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

Post Reply