When I set the "Name" property on an Axis object, I get "The type or namespace name 'Windows' does not exist in the namespace ... (are you missing an assembly reference?)"
<igChart:Axis AxisType="SecondaryY" Unit="1000000000" Name="Y2"> <igChart:Axis.Label> <igChart:Label Angle="45" Format="{}{0:##,###}" /> </igChart:Axis.Label> <igChart:Axis.MajorGridline> <igChart:Mark StrokeThickness="1" Stroke="Gray" /> </igChart:Axis.MajorGridline> </igChart:Axis>
Any idea why?
The problem was a namespace naming "collision." I have a library ending in ".Infragistics" that extends the charting API with attached properties (that you helped me with). It was confusing the shell application, so I renamed the namespace to "InfragisticsWPF."
Hmmm... the first thing I would check is if the project has all the references a WPF application would traditionally have when freshly created from the template. Also which Infragistics assemblies are you referencing? Is that error coming from a .g file? Once you name an element the build will try to emit code such that the object is reachable from the code behind class, but if you don't have the correct assembly references added to the project this could create problems.
-Graham