I had a problem while changing ZIndex value in a MarkerElementPointGraph -> It changes, but the visual appearance is the same.
After some debugging, I found that the problem is that this Marker "Element" Point Graph is using a grid to create the items (elements), and adds this auxiliary grid to the main Plotter. Thus, their ZIndex value is not changed when the
MarkerElementPointGraph is changed.
To solve this, you should modify ViewportElement2D.cs:
// change (at line 73):
public int ZIndex
public virtual int ZIndex
Create this override in MarkerElementPointGraph.cs:
public override int ZIndex
return this.grid != null ? Panel.GetZIndex(this.grid) : base.ZIndex;
base.ZIndex = value;
if (this.grid != null)
And finally, set the initial ZIndex value when creating the Grid, in MarkerElementPointGraph.cs:
I will send a patch and update this post later
protected override void OnPlotterAttached(Plotter plotter)
< existing code >
.... Add this to the bottom ....