您的位置:首页 > 产品设计 > UI/UE

获得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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  null
相关文章推荐