我在NumericAxis上设置自定义ITickProvider:
var yaxis = new NumericAxis();
yaxis.TickProvider = new MyTickProvider();
在运行时,永远不会调用ITickProvider.Init方法:
public class MyTickProvider : ITickProvider
{
public void Init(IAxis axis)
{
// never called
}
public double[] GetMajorTicks(IAxisParams axis)
{
// this method is called first
return new double[] {};
}
public double[] GetMinorTicks(IAxisParams axis)
{
// this method is called second
return new double[] { };
}
}
我需要做什么才能调用Init?我正在使用SciChart的3.1.0.5013版本。