This question is locked. New answers and comments are not allowed.
I didn't see a property for this anywhere or any other mention in the forums so I thought I would provide my work around. This was desired for me because when dragging over a deep tree the user can instantly get overwhelmed with expanding branches quickly putting there original desired target out of view. If there are better ways to handle this please share.
| private RadTreeViewItem cCurrentItemDelayExpand = null; |
| private int cCurrentItemHitCount = 0; |
| private void myTreeView_PreviewExpanded(object sender, RadRoutedEventArgs e) |
| { |
| if (RadDragAndDropManager.IsDragging) |
| { |
| if (e.Source is RadTreeViewItem) |
| { |
| if (cCurrentItemHitCount > 999) cCurrentItemHitCount = 0; |
| if ((RadTreeViewItem)e.Source == cCurrentItemDelayExpand) |
| { |
| if (cCurrentItemHitCount++ < 7)//adjust the number to fine tune your desired "delay" hit count |
| e.Handled = true; |
| } |
| else |
| { |
| cCurrentItemDelayExpand = (RadTreeViewItem)e.Source; |
| cCurrentItemHitCount = 0; |
| e.Handled = true; |
| } |
| } |
| } |
| } |