While doing a drag drop into the grid we want to show the Effects as None when we move over the scrollbar.
DataRecordCellArea area = Infragistics.Windows.Utilities.GetAncestorFromType(e.OriginalSource as DependencyObject, ...
If I use the above code then the Effects show up as None when we are over the empty area in the grid. We want to allow users to drop over the empty area.
Is there any way by which I can find out if the drag is over the scrollbar?
Microsoft.Windows.Themes.ScrollChrome sc = Infragistics.Windows.Utilities.GetAncestorFromType(e.OriginalSource as DependencyObject,typeof(Microsoft.Windows.Themes.ScrollChrome), true) as Microsoft.Windows.Themes.ScrollChrome;
The above is not detecting scrollbar either.
Thanks.
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and suggest you use this:
var scrollBar = Utilities.GetDescendantFromType(xamDataGrid1, typeof(ScrollBar), true);
in order to get the ScrollBar of the XamDataGrid.
Feel free to write me if you have any other questions.