赞
踩
System.Windows.Controls.DataVisualization.Toolkit.dll
WPFToolkit.dll
下面就是贴代码了,在前台代码中引用:
xmlns:toolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
之后就可以在前台代码中使用了:
<toolkit:Chart x:Name="mChart">
<toolkit:Chart.Series>
<toolkit:LineSeries Title="Column" IndependentValueBinding="{Binding Key}" DependentValueBinding="{Binding Value}"/>
<toolkit:LineSeries Title="Line" IndependentValueBinding="{Binding Key}" DependentValueBinding="{Binding Value}"/>
</toolkit:Chart.Series>
</toolkit:Chart>
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。