With the new DragDropManager (instead of RadDragAndDropManager), how to get the PropertyGridField when mouse is dragging over it?
2 Answers, 1 is accepted
answered on 06 Jun 2014, 07:41 AM
You can use the e.OriginalSource property in combination with the ParentOfType extension method to get the target PropertyGridField.
var field = e.OriginalSource as PropertyGridField ?? (e.OriginalSource as FrameworkElement).ParentOfType<PropertyGridField>();
Hope this helps.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
It works. Thanks Nik. In normal cases the control got passed in as OriginalSource was the border. Through ParentOfType<PropertyGridField>, it traverses a few levels up to get to the parent PropertyGridField.