有没有办法调用使用WPF中的C#代码创建的Visiblox Chart
?调用在wpf中使用c#代码创建的visiblox图表
比方说,我创建了像图:
private Chart CreateNewChart(int num_chart, string chartName)
{
Chart newChart = new Chart();
newChart.Name = "Chart_"+num_chart;
newChart.Title = chartName;
newChart.Width = 600;
newChart.Height = 120;
newChart.Background = Brushes.Transparent;
newChart.HorizontalAlignment = HorizontalAlignment.Left;
newChart.VerticalAlignment = VerticalAlignment.Top;
newChart.Margin = new Thickness(0, (num_chart * 110), 0, 0);
BehaviourManager behaviour = new BehaviourManager();
behaviour.AllowMultipleEnabled = true;
TrackballBehaviour track = new TrackballBehaviour();
ZoomBehaviour zoom = new ZoomBehaviour();
behaviour.Behaviours.Add(track);
behaviour.Behaviours.Add(zoom);
newChart.Behaviour = behaviour;
return newChart;
}
而当我输入一些日期从CSV文件,我想从另一个CSV文件中添加更多的数据。有没有办法用这个名字创建Chart
?
在此先感谢。
我的练习是创建一个程序,每当我按下一个按钮时,我都会动态创建一个名为import的拖动按钮的visiblox聊天,另一个命名为more ...我现在可以动态地使用c#生成尽可能多的我想线图,并把它们放在一个网格与他们的按钮..当我按导入一切都很好,但是当我想从另一个文件中添加更多的线条在图表中,我想知道如何从一个特定的按钮调用用一个名称与te图表相同的名称来再次实例化图表并添加更多行......谢谢 – Anaisthitos 2011-12-22 14:20:25