/// <summary> /// Class constructor from parameters without a specific tabindex as dock position. /// </summary> /// <param name="paneControl"></param> /// <param name="detectionRect"></param> /// <param name="type"></param> internal AnchorablePaneDropTarget(LayoutAnchorablePaneControl paneControl, Rect detectionRect, DropTargetType type) : base(paneControl, detectionRect, type) { _targetPane = paneControl; }
/// <summary> /// Class contructor /// </summary> /// <param name="paneControl"></param> /// <param name="detectionRect"></param> /// <param name="type"></param> internal DocumentPaneGroupDropTarget(LayoutDocumentPaneGroupControl paneControl, Rect detectionRect, DropTargetType type) : base(paneControl, detectionRect, type) { _targetPane = paneControl; }
internal DocumentPaneDropAsAnchorableTarget(LayoutDocumentPaneControl paneControl, Rect detectionRect, DropTargetType type, int tabIndex) : base(paneControl, detectionRect, type) { _targetPane = paneControl; _tabIndex = tabIndex; }
/// <summary> /// Class constructor /// </summary> /// <param name="manager"></param> /// <param name="detectionRect"></param> /// <param name="type"></param> internal DockingManagerDropTarget(DockingManager manager, Rect detectionRect, DropTargetType type) : base(manager, detectionRect, type) { _manager = manager; }
public override void DropObject(IList source, TreeListNode insertNode, DropTargetType dropTargetType, object obj) { switch(dropTargetType) { case DropTargetType.InsertRowsAfter: case DropTargetType.InsertRowsBefore: SetPropertyValue(obj, TreeListView.ParentFieldName, GetPropertyValue(insertNode.Content, TreeListView.ParentFieldName)); break; case DropTargetType.InsertRowsIntoNode: SetPropertyValue(obj, TreeListView.ParentFieldName, GetPropertyValue(insertNode.Content, TreeListView.KeyFieldName)); break; case DropTargetType.DataArea: if(TreeListView.RootValue != null) SetPropertyValue(obj, TreeListView.ParentFieldName, TreeListView.RootValue); break; default: break; } }
protected DropTarget(T targetElement, IEnumerable <Rect> detectionRects, DropTargetType type) { _targetElement = targetElement; _detectionRect = detectionRects.ToArray(); _type = type; }
protected DropTarget(T targetElement, Rect detectionRect, DropTargetType type) { _targetElement = targetElement; _detectionRect = new Rect[] { detectionRect }; _type = type; }
public virtual void DropObject(IList source, TreeListNode insertNode, DropTargetType dropTargetType, object obj) { }
GridDropEventArgs RaiseDropEvent(DragDropManagerBase sourceManager, TableViewHitInfo hitInfo, IList rows, DropTargetType dropTargetType) { GridDropEventArgs e = new GridDropEventArgs() { HitInfo = hitInfo, DraggedRows = rows, DropTargetType = dropTargetType, Handled = false, Manager = this, SourceManager = sourceManager, GridControl = GridControl, }; if(DropEventHandler != null) DropEventHandler(this, e); return e; }
internal DocumentPaneDropAsAnchorableTarget(LayoutDocumentPaneControl paneControl, Rect detectionRect, DropTargetType type) : base(paneControl, detectionRect, type) { this._targetPane = paneControl; }
void InsertObject(IList ItemsSource, TreeListNode node, DropTargetType dropTargetType, object obj, int index) { switch(dropTargetType) { case DropTargetType.InsertRowsBefore: GetParentItemsSource(node).Insert(index, obj); break; case DropTargetType.InsertRowsAfter: GetParentItemsSource(node).Insert(index, obj); break; case DropTargetType.DataArea: case DropTargetType.InsertRowsIntoNode: GetItemsSource(node).Add(obj); break; default: break; } }
TreeListDropEventArgs RaiseDropEvent(DragDropManagerBase sourceManager, TreeListViewHitInfo hitInfo, TreeListNode insertNode, IList rows, DropTargetType dropTargetType) { TreeListDropEventArgs e = new TreeListDropEventArgs() { HitInfo = hitInfo, TargetNode = insertNode, DraggedRows = rows, DropTargetType = dropTargetType, Handled = false, Manager = this, SourceManager = sourceManager, DataControl = DataControl as GridDataControlBase, }; if(DropEventHandler != null) DropEventHandler(this, e); return e; }
protected DropTarget(T targetElement, Rect detectionRect, DropTargetType type) { TargetElement = targetElement; DetectionRects = new[] { detectionRect }; Type = type; }
internal AnchorablePaneDropTarget(LayoutAnchorablePaneControl paneControl, Rect detectionRect, DropTargetType type, int tabIndex) : base(paneControl, detectionRect, type) { this._targetPane = paneControl; this._tabIndex = tabIndex; }