I am trying to specify a TrendLineType for a LineSeries in code, but it seems as if the Infrgistics.Controls.Charts.TrendLineType enum is missing:
Infragistics.Controls.Charts.LineSeries series = new LineSeries();series.TrendLineType = Infragistics.Controls.Charts.TrendLineType....?
The underlined section of code gives me a "The type or namespace name 'TrendLineType' does not exist in the namespace 'Infragistics.Controls.Charts' (are you missing an assembly reference?)" design-time error.
Am I missing a reference?
Thank you - that did it!
If only I had thought to drag the control onto my nonexistent form :)
Thank you Petar!
Hello,
I have been looking into this for you and I created a new sample project to test it out. If you drag/drop the XamDataChart from the toolbox everything works correctly, as it adds three assemblies: InfragisticsWPF4.Controls.Charts.XamDataChart.v12.2, InfragisticsWPF4.DataVisualization.v12.2, and InfragisticsWPF4.v12.2. The enum is in InfragisticsWPF4.DataVisualization.v12.2, so I guess you must be missing it.
Please let me know if you require any further assistance on the matter.
It does enumerate the types correctly if I specify the TrendLineType in XAML. We can't do this though, as we add series dynamically from code-behind.