Hello,
I recently went to upgrade the references in our projects from 2011.1 to 2011.2. Everything went fine save one small issue: The axis information is set programmatically, and in the function that does the axis setting I'm getting a notification that X and Y axis are set as private. According to the documentation both fields are still public and this error results whether I manually upgrade or use the versioning utility.
At this point in time it's preventing us from upgrading. Does anyone have insight as to exactly what might be going on here? Thank you.
This is the code that generates the issue:
private static CategorySeries SetCommonLineProperties( CategorySeries categorySeries, ISeriesViewModel viewModel, CategoryXAxis xAxis, NumericYAxis yAxis ) { categorySeries.MarkerType = MarkerType.None; categorySeries.Thickness = viewModel.LineThickness > 0 ? viewModel.LineThickness : 1; categorySeries.ItemsSource = viewModel.Data; categorySeries.Title = viewModel.Name; categorySeries.YAxis = yAxis; categorySeries.XAxis = xAxis; if ( !String.IsNullOrEmpty( viewModel.LineBrush ) ) { categorySeries.Brush = GetBrush( viewModel.LineBrush, viewModel.LineBrushType ); } return categorySeries; }
CategorySeries categorySeries, ISeriesViewModel viewModel, CategoryXAxis xAxis, NumericYAxis yAxis ) { categorySeries.MarkerType = MarkerType.None; categorySeries.Thickness = viewModel.LineThickness > 0 ? viewModel.LineThickness : 1; categorySeries.ItemsSource = viewModel.Data; categorySeries.Title = viewModel.Name; categorySeries.YAxis = yAxis; categorySeries.XAxis = xAxis; if ( !String.IsNullOrEmpty( viewModel.LineBrush ) ) { categorySeries.Brush = GetBrush( viewModel.LineBrush, viewModel.LineBrushType ); } return categorySeries; }
Hello, I had attempted to run your sample; however upon opening it presented me with warnings as to the members being marked private. Additionally an attempt to build resulted in this warning:
'Infragistics.Controls.Charts.CategorySeries' does not contain a definition for 'YAxis' and no extension method 'YAxis' accepting a first argument of type 'Infragistics.Controls.Charts.CategorySeries' could be found (are you missing a using directive or an assembly reference?)
Thank you for your answer.
I did not get if you have managed to run my sample on your machine and see if you are getting the same message, and if not, compare my project with you custom implementation of the matter, because this properties are public and you should be able to get that from the code behind.
Could you please if possible try that and inform me on the result.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Unfortunately multiple attempts at redownload/installation; manual/automatic updating, and use of multiple computers to attempt the work all result in the same case. At this point in time it has been decided to delay upgrading until the 12.1 release.
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
Infragistics
I have been looking into your question and the X and Y axis are still a public properties in NetAdvantage11.2. I tried to reproduce your error message but everything worked as expected. I am attaching the sample that I have implemented in order to recreate the mentioned behavior, so you can compare with your project and check the differences.
Please do not hesitate to contact us in case of future difficulties regarding that matter.