This project is read-only.

SnapsToDevicePixels for Ticks and AxisGrid

Jan 5, 2011 at 2:22 PM

Hello,

does anyone know if it is possible to change the code quickly so that the axis grid and line ticks, or at least the axis grid are always drawn to device pixels? I'm note sure how this can be accomplished since it is a line geometry drawn on a canvas. Any hints would be great.

Regards

jp

Jan 5, 2011 at 2:33 PM

Got it my self. I added a function to AxisGrid class:

 

public void SetEdgeMode(EdgeMode edgeMode)
        {
            RenderOptions.SetEdgeMode(path, edgeMode);
        }

 

this allows to set the render mode for the path/axis grid.

Regards

Jan 5, 2011 at 2:35 PM

Unfortunately this seems not to be a good solution since it produces flickering lines. Any other suggestions?