Get actual MinorStep (or any grid-related values)

Oystein Bjorke 5 years ago 0
This discussion was imported from CodePlex

tboloo wrote at 2013-05-04 20:25:

Dear oxyplotters,
I am trying to create plot containing both Carthesian and Polar grid. For the first one I use regular Major- nad MinorGridLines, whereas for the second one I intended to use EllipseAnnotations. Now everyting would be fine, if only I could get the actual Major- or MinorStep, the problem is that both are either zero or NaN. Any hints on what can I do?
Regards,
Bolek

objo wrote at 2013-05-06 10:33:

Maybe you are querying the properties too early. The ActualMajorStep/ActualMinorStep properties are set when the plot is being updated/redrawn. The values of these properties depends on the width/height of the plot.
CodePlex