/// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 internal DocumentPaneDropAsAnchorableTarget(LayoutDocumentPaneControl paneControl, Rect detectionRect,
                                             DropTargetType type, int tabIndex)
     : base(paneControl, detectionRect, type)
 {
     _targetPane = paneControl;
     _tabIndex   = tabIndex;
 }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
		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;
			}
		}
Ejemplo n.º 6
0
 protected DropTarget(T targetElement, IEnumerable <Rect> detectionRects, DropTargetType type)
 {
     _targetElement = targetElement;
     _detectionRect = detectionRects.ToArray();
     _type          = type;
 }
Ejemplo n.º 7
0
 protected DropTarget(T targetElement, Rect detectionRect, DropTargetType type)
 {
     _targetElement = targetElement;
     _detectionRect = new Rect[] { detectionRect };
     _type          = type;
 }
Ejemplo n.º 8
0
		public virtual void DropObject(IList source, TreeListNode insertNode, DropTargetType dropTargetType, object obj) {
		}
Ejemplo n.º 9
0
		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;
		}
Ejemplo n.º 10
0
 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;
		}
Ejemplo n.º 13
0
 protected DropTarget(T targetElement, Rect detectionRect, DropTargetType type)
 {
     TargetElement  = targetElement;
     DetectionRects = new[] { detectionRect };
     Type           = type;
 }
Ejemplo n.º 14
0
 internal AnchorablePaneDropTarget(LayoutAnchorablePaneControl paneControl, Rect detectionRect, DropTargetType type, int tabIndex) : base(paneControl, detectionRect, type)
 {
     this._targetPane = paneControl;
     this._tabIndex   = tabIndex;
 }