I am encountering an access violation when I try to set the Active member of the CursorTool object to true.
Is this a known problem or am I doing something wrong? I am porting a working WPF charting application over to Silverlight.
I am using Visual Studio 2010 with the latest .NET charting tools.
Thanks,
Kent
private CursorTool ChartTool1 = new CursorTool();
ChartTool1.Active = false;
Exception occurs when setting CursorTool.Active in Silverlig
-
- Newbie
- Posts: 34
- Joined: Tue Nov 04, 2008 12:00 am
Re: Exception occurs when setting CursorTool.Active in Silverlig
Hello Kent,
I think that your problem is here:
You need to assign cursorTool a Chart, for works with it. I have made a simple example that works correctly here with last version of TeeChartSilverlight and you can use for solve your problem.
Please, could you check if previous code works as you want?
I hope will helps.
Thanks,
I think that your problem is here:
Code: Select all
private CursorTool ChartTool1 = new CursorTool();
Code: Select all
Steema.TeeChart.Silverlight.Styles.Line line1;
Steema.TeeChart.Silverlight.Tools.CursorTool cursor1;
private void InitializeChart()
{
cursor1 = new Steema.TeeChart.Silverlight.Tools.CursorTool(tChart1.Chart);
line1 = new Steema.TeeChart.Silverlight.Styles.Line(tChart1.Chart);
line1.FillSampleValues();
cursor1.Active = false;
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 34
- Joined: Tue Nov 04, 2008 12:00 am
Re: Exception occurs when setting CursorTool.Active in Silverlig
That solved my problem. Thanks!