我是用现代的UI图表为Windows 8,我需要当用户在图表选择了一系列的项目做一个向下钻取 (对于例如:我有一个柱形图,显示一个学生一年明智的性能,当用户选择一个特定的列,我应该表现出另一列图表,他在每个主题获得该年的得分)
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)
我要寻找某种SelectionChanged事件或类似的东西,这样我可以改变输入系列获得不同的图表
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
请帮助!
目前我故意没有实现在排行榜上的任何事件。可以使用一个双向数据绑定到的变化作出反应。
Currently I have intentionally not implemented any events in the charts. You can use a two-way data binding to react on changes.
您可以绑定您的视图模型图表的SelectedItem属性的属性,如果选择改变你收到通知。
You can bind a property of your view model to the SelectedItem property of the chart and you get notified if the selection changes.
请参阅文档中的示例 HTTP://modernuicharts.$c$cplex.com/文档#howto1
通过这种方式,你可以直接在第二个图表绑定到SelectedItem属性和所有的魔法是由数据绑定完成的。
With this approach you could directly bind a second chart to the SelectedItem property and all "magic" is done by data binding.
干杯, 托
上一篇:尝试播放某些设备上的MP3 ActivityNotFoundException设备、ActivityNotFoundException
下一篇:FragmentTransaction .attach和.detach的动作条的标签动作、标签、FragmentTransaction、attach