问题描述
- DevExpress Silverlight Chart Scatter 鼠标点击事件
- 用的是DevExpress Silverlight ChartControl控件
private void mScatter_MouseLeftButtonUp(object sender MouseButtonEventArgs e)
{
FrameworkElement fe = e.OriginalSource as FrameworkElement;
if (fe == null) return;
SeriesPointPresentationData data = fe.DataContext as SeriesPointPresentationData;
if (data == null) return;MessageBox.Show(data.LabelText); }
绑定到mScatter里的数据源
TestModel[] datas=this.GetTestModel();
this.mScatter.DataSource=datas;我需要在鼠标点击是取到原始的TestModel对象,那问高手能指教下,不胜感激。。。
时间: 2024-11-03 21:40:41