我有一个页面,我想在其中使用 WinRT Xaml 工具包数据可视化控件放置图表。
我有以下代码:
<Charting:Chart x:Name="PieChart" Width="400" Height="400">
<Charting:Chart.Series>
<Charting:PieSeries IndependentValuePath="X" DependentValuePath="Y"/>
</Charting:Chart.Series>
</Charting:Chart>
VS 告诉我,PieSeries 是错误的:“不能将 'PieSeries' 类型的值添加到 'Collection`1' 类型的集合或字典中”。
为什么这是一个错误?