Here are the examples of the csharp api class AdamsLair.WinForms.PropertyEditing.PropertyEditor.OnDragOver(System.Windows.Forms.DragEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
0
1. Example
Project: duality
Source File: IColorDataPropertyEditor.cs
Source File: IColorDataPropertyEditor.cs
protected override void OnDragOver(DragEventArgs e) { base.OnDragOver(e); DataObject data = e.Data as DataObject; if (data.ContainsIColorData()) e.Effect = e.AllowedEffect; }
0
2. Example
Project: winforms
Source File: PropertyGrid.cs
Source File: PropertyGrid.cs
protected override void OnDragOver(DragEventArgs e) { //Console.WriteLine("OnDragOver"); base.OnDragOver(e); if (this.mainEditor != null) { Point localPoint = this.PointToClient(new Point(e.X, e.Y)); DragEventArgs subEvent = new DragEventArgs( e.Data, e.KeyState, localPoint.X - this.ClientRectangle.X, localPoint.Y - this.ClientRectangle.Y - this.AutoScrollPosition.Y, e.AllowedEffect, e.Effect); this.mainEditor.OnDragOver(subEvent); e.Effect = subEvent.Effect; } }
0
3. Example
Project: duality
Source File: ObjectRefPropertyEditor.cs
Source File: ObjectRefPropertyEditor.cs
protected override void OnDragOver(DragEventArgs e) { base.OnDragOver(e); if (this.ReadOnly || !this.Enabled) return; DataObject data = e.Data as DataObject; if (this.CanDeserializeFromData(data)) { e.Effect = e.AllowedEffect; if (!this.dragHover) this.Invalidate(); this.dragHover = true; } }
0
4. Example
Project: winforms
Source File: GroupedPropertyEditor.cs
Source File: GroupedPropertyEditor.cs
protected internal override void OnDragOver(DragEventArgs e) { base.OnDragOver(e); PropertyEditor lastHoverEditor = this.hoverEditor; this.hoverEditor = this.PickEditorAt(e.X, e.Y, true); if (this.hoverEditor == this) this.hoverEditor = null; if (lastHoverEditor != this.hoverEditor && lastHoverEditor != null) lastHoverEditor.OnDragLeave(EventArgs.Empty); if (lastHoverEditor != this.hoverEditor && this.hoverEditor != null) { e.Effect = DragDropEffects.None; this.hoverEditor.OnDragEnter(e); } if (this.hoverEditor != null) { this.hoverEditor.OnDragOver(e); } else { e.Effect = DragDropEffects.None; } }