Hi,
in LC6 exist Zoomed and BeforeZooming events. It would be handy, if we could also get events for zooming out.
ZoomedOut, BeforeZoomingOut Events
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ZoomedOut, BeforeZoomingOut Events
Hi Frank,
these events also fire in zooming out with mouse buttons.
For example, this code shows how to investigate is it zooming in our out.
these events also fire in zooming out with mouse buttons.
For example, this code shows how to investigate is it zooming in our out.
Code: Select all
void ViewXY_Zoomed(List<RangeChangeInfo> xRanges, List<RangeChangeInfo> yRanges)
{
if((xRanges[0].NewMax - xRanges[0].NewMin) > (xRanges[0].OldMax - xRanges[0].OldMin))
System.Diagnostics.Debug.WriteLine("zoomed out");
else
System.Diagnostics.Debug.WriteLine("zoomed in");
}
LightningChart Support Team, PT
Re: ZoomedOut, BeforeZoomingOut Events
Thanks,
this tip is very helpful.
Best regards,
Frank
this tip is very helpful.
Best regards,
Frank
Re: ZoomedOut, BeforeZoomingOut Events
Hi,
I just tried to implement your example. But in WPF I only have
I just tried to implement your example. But in WPF I only have
Code: Select all
xRanges[0].CurrentMin
xRanges[0].CurrentMax
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ZoomedOut, BeforeZoomingOut Events
As discussed by e-mail, BeforeZooming has only Current values because zooming has not finished yet, and thus end range is not known. In Zoomed event Old and New range are available.
LightningChart Support Team, PT