Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
Problem with Name property in Axis
posted

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?

Parents
  • 30692
    Suggested Answer
    Offline posted

    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

Reply Children
No Data