OnSelectionChanged event for chart controls in Modern UI Charts for Windows 8

隐身守侯 提交于 2020-01-23 18:04:05

问题


I am using Modern UI Charts for Windows 8 and I need to do a drill down when the user selects a series item in the chart
(for eg: I have a Column Chart which shows a student Year wise performance and when user selects a particular Column I should show another Column chart with the score he obtained for that particular year in each subject)

I am looking for some kind of selectionchanged event or something similar so that I can change the input to the series to get a different chart

Please Help!!


回答1:


Currently I have intentionally not implemented any events in the charts. You can use a two-way data binding to react on changes.

You can bind a property of your view model to the SelectedItem property of the chart and you get notified if the selection changes.

See the sample in the documentation http://modernuicharts.codeplex.com/documentation#howto1

With this approach you could directly bind a second chart to the SelectedItem property and all "magic" is done by data binding.

Cheers, Torsten



来源:https://stackoverflow.com/questions/16669006/onselectionchanged-event-for-chart-controls-in-modern-ui-charts-for-windows-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!