开发者

Silverlight 4.0: Chart Toolkit ItemSource

Im migrating my application from visifire to toolkit. I am new to charting toolkit.

How to bind chart data if the itemsource is of type PagedCollectionView?

As I've seen here the example is by using KeyValuePair. Is it just re开发者_Python百科ally by keyvaluepair?

Thanks


I would bind to the SourceCollection property on the PagedCollectionView. That way, in your XAML, you can explicitly specify the attributes on your object to bind to... That makes the XAML easier to read and easier to maintain in my opinion. For example:

<chartingToolkit:ColumnSeries Title="Actual" 
    ItemsSource="{Binding SavingsPagedViewCollectionSummary.SourceCollection}" 
    IndependentValueBinding="{Binding Company}" 
    DependentValueBinding="{Binding Savings}" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜