OnSelectionChanged事件为Windows 8图表控件在现代的UI图表 [英] OnSelectionChanged event for chart controls in Modern UI Charts for Windows 8

查看:194
本文介绍了OnSelectionChanged事件为Windows 8图表控件在现代的UI图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是用现代的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.

干杯, 托

这篇关于OnSelectionChanged事件为Windows 8图表控件在现代的UI图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆