会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
紫色永恒
Nothing lasts forever.
博客园
首页
新随笔
联系
订阅
管理
2009年12月21日
[Silverlight]让DataGrid支持滚轮的山寨方法
摘要: 全部的实现代码非常简单。 XAML中一个DataGrid,捕获其MouseWheel事件,然后做如下处理(注意例子中的Person为绑定到DataGrid的集合类型): private void dataGrid1_MouseWheel(object sender, MouseWheelEventArgs e) { if (!e.Handled) { int rowsToMove = e.De...
阅读全文
posted @ 2009-12-21 10:43 紫色永恒
阅读(881)
评论(4)
推荐(2)
编辑
公告