C# 主窗口构造函数 InitializeComponent();
List<Student> list = new List<Student>() {
new Student(){shipmem=20}};
c1Chart9.DataContext = list;
WPF <c1chart:C1Chart Name="c1Chart9" Theme="{DynamicResource {ComponentResourceKey ResourceId=Office2007Blue, TypeInTargetAssembly=c1chart:C1Chart}}" Margin="346,236,202,226" Height="233" Width="85" Canvas.Left="-115" Canvas.Top="-42" Palette="Civic">
<c1chart:C1Chart.Data>
<c1chart:ChartData ItemNames="进气" ItemsSource="{Binding list}" >
<c1chartataSeries Values="8 " />
</c1chart:ChartData>
</c1chart:C1Chart.Data>
在主窗口构造函数初始化的时候可以绑定,放到按键的点击事件中就不反应了图表,请问程序有问题吗 |