Hello Adrian,
We were unable to reproduce the issue based on your description. The code snipped bellow demonstrates a gauge placed in an NDockPanel – our tests did not show any problems with dampening.
Timer m_Timer;
double m_Angle;
NRangeIndicator m_RangeInidcator;
NNeedleValueIndicator m_Needle;
Random rand = new Random();
…
NChartCommandBarsManager commandBarsManager = new NChartCommandBarsManager();
commandBarsManager.ParentControl = this;
commandBarsManager.ChartControl = nChartControl1;
nChartControl1.Charts.Clear();
NRadialGaugePanel gaugePanel = new NRadialGaugePanel();
m_RangeInidcator = new NRangeIndicator();
m_RangeInidcator.DampeningInterval = 50;
m_RangeInidcator.DampeningSteps = 10;
m_RangeInidcator.EnableDampening = true;
m_RangeInidcator.Value = 50;
m_RangeInidcator.BeginWidth = new NLength(10);
m_RangeInidcator.EndWidth = new NLength(20);
gaugePanel.Indicators.Add(m_RangeInidcator);
m_Needle = new NNeedleValueIndicator();
m_Needle.Value = 40;
m_Needle.DampeningInterval = 50;
m_Needle.DampeningSteps = 10;
m_Needle.EnableDampening = true;
gaugePanel.Indicators.Add(m_Needle);
nChartControl1.AutoRefresh = true;
NDockPanel panel = new NDockPanel();
panel.Dock = DockStyle.Top;
panel.Size = new NSizeL(0, 400);
panel.ChildPanels.Add(gaugePanel);
nChartControl1.Panels.Add(panel);
m_Timer = new Timer();
m_Timer.Interval = 200;
m_Timer.Start();
m_Timer.Tick += new EventHandler(m_Timer_Tick);
…
void m_Timer_Tick(object sender, EventArgs e)
{
m_Angle += Math.PI / 180.0;
rangeInidcator.Value = 50 + Math.Sin(m_Angle) * (20 + rand.Next(30));
needle.Value = 50 + Math.Sin(m_Angle) * (30 + rand.Next(20));
nChartControl1.Refresh();
}
Best Regards,
Nevron Support Team