I'm trying to add a gauge to an existing wrapPanel but I'm doing something wrong. my code is :
The error I get is :
"Unable to cast object of type 'Telerik.Windows.Controls.Gauges.IndicatorList' to type 'Telerik.Windows.Controls.Gauges.IGaugeIndicator'".
Could you please write the right way for doing this?
Thank you
Grid newGrid =
new
Grid();
RadGauge newRG =
new
RadGauge();
LinearGauge newLG =
new
LinearGauge();
LinearScale newLS =
new
LinearScale();
IndicatorList newIL =
new
IndicatorList();
Marker newMarker =
new
Marker();
newIL.Items.Add(newMarker);
newLS.Indicators.Add(newIL
);
newLG.Items.Add(newLS);
newRG.Content = newLG;
newGrid.Children.Add(newRG);
GaugesWrapPanle.Children.Add(newGrid);
The error I get is :
"Unable to cast object of type 'Telerik.Windows.Controls.Gauges.IndicatorList' to type 'Telerik.Windows.Controls.Gauges.IGaugeIndicator'".
Could you please write the right way for doing this?
Thank you