60
NumericXAxis: How to set maximum visible value?
posted

Dear Infragistics Team,

I need to set the maximum visible value for the numericXAxis when the app starts. I know that I can use WindowScaleHorizontal properties but It doesn't solve my issue.
I have xAxis.MinimumValue = 3800 and xAxis.MaximumValue = 17000. I want that the app starts with xAxis.MaximumVisibleValue = 4800. 

ScrollRangeIntoView(3800, 4800) provides the correct result but it works only if I handle the WindowsRectChange.
If the app starts with:

InitializeComponent();

....
xAxis.ScrollRangeIntoView(3800, 4800);

i receive a "Object reference not set to an instance of an object". 

Any ideas please?