获得XamDataGrid 中, 自定义CellValuePresenter中的控件的方法 - 记号
2011-06-28 16:42
344 查看
DependencyObject source = e.OriginalSource as DependencyObject; if (source == null) return; DataRecordPresenter drp = Infragistics.Windows.Utilities.GetAncestorFromType(source, typeof(DataRecordPresenter), true) as DataRecordPresenter; CellValuePresenter cvp = CellValuePresenter.FromRecordAndField(drp.DataRecord, drp.DataRecord.FieldLayout.Fields[0]); ListBox lstSource = Infragistics.Windows.Utilities.GetDescendantFromName(cvp, "lstWorkUnit") as ListBox; ListBox lstTarget = Infragistics.Windows.Utilities.GetDescendantFromName(cvp, "lstSelectedUnit") as ListBox; var a = Infragistics.Windows.Utilities.GetDescendantFromType(cvp, typeof(XamTextEditor), false);
相关文章推荐
- iOS开发 获取相应自定义cell里控件的点击方法
- 基于jQuery的获得各种控件Value的方法
- 通过tag值获得相应的控件 and 在didSeclec方法中获得TableView中得相应cell
- XamDataGrid 中, 使用CellValuePresenter - 记号
- 添加UIview自定义的分割线、去掉默认的cell分割线、默认选中某一个(行)cell的方法
- VS2005下自定义用户控件 如何实现属性及方法的相关智能提示
- 很犀利的防止自定义的用户控件闪烁方法
- iOS 中使用 XIB 自定义cell 的两种方法 以及 编译出现常见 的错误 ++++(xcode6.0之后)
- 在自定义cell里面实现跳转的方法
- android --activity 中的控件设置侦听(onclickListener)无效,自定义adapter不执行getView 方法
- ListView使用自定义适配器的情况下实现适配器的文本和图标控件点击事件执行Activity界面中的方法
- Jquery获得服务器控件的方法
- Jquery获得控件值的方法
- java读写excel时出现Cannot get a NUMERIC value from a STRING cell的解决方法
- 带checkbox的ListView实现(二)——自定义Checkable控件的实现方法
- ios-根据单元格里的控件tag值,在方法外获得对应的section与row的值
- 自定义cell上的控件关联的变量一直为nil,研究了好长时间,操作应该没有错误,求大神帮忙
- Android自定义组合控件以及使用方法_1
- 自定义Cell访问不了自己的set方法,并且对象初始化产生的不是自定义的类型(cell.contact = self.contacts[indexPath.row])