drawing layers

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TomAgos
Newbie
Newbie
Posts: 16
Joined: Thu Jan 16, 2025 12:00 am

drawing layers

Post by TomAgos » Thu Mar 20, 2025 12:36 pm

Hey

im using the 'AfterDraw' event to manually draw a grid on the chart (with the Graphic3D instance of the chart).
at the same time im adding some Annotations in the grid.
my problem is that the grid lines is draw on top of the annotation, you can see it in the file i have attached:
onTop.png
onTop.png (2.35 KiB) Viewed 2005 times
how can i fix that?
my app is in WPF but im using the Steema.TeeChart.TChart (the winForms version) inside WindowsFormsHost.

Marc
Site Admin
Site Admin
Posts: 1298
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: drawing layers

Post by Marc » Thu Mar 20, 2025 1:04 pm

Hello,

You can use the alternative events in the paint cycle to (z) position your plot:
this order:
  • BeforeDrawAxes
  • BeforeDrawSeries
or (last as you are using now)
  • AfterDraw
Regards,
Marc Meumann
Steema Support

Post Reply