ChartAfterRemdering event causes StackOverflowException
Posted: Mon Sep 12, 2016 8:00 am
Hello,
after updating to 7.1.4 from v6, we started to get System.StackOverflowException.
I suppose some propety setters are firing ChartAfterRemdering event in v7.
This is the handler:
Is there a list of actions, that cause firing of ChartAfterRemdering event?
How should this be handled?
Thanks
after updating to 7.1.4 from v6, we started to get System.StackOverflowException.
I suppose some propety setters are firing ChartAfterRemdering event in v7.
This is the handler:
Code: Select all
private void ChartAfterRendering(object sender, AfterRenderingEventArgs args)
{
if (_leftMargin == 0)
return;
_chart.ViewXY.AxisLayout.AutoAdjustMargins = false;
var margin = _chart.ViewXY.Margins;
margin.Left = _leftMargin + 30;
_chart.ViewXY.Margins = margin;
}
How should this be handled?
Thanks