void treeView_DragOver(object sender, System.Windows.Forms.DragEventArgs e) { DragOver?.Invoke(this, new Gui.Controls.DragEventArgs( e.Data, e.KeyState, e.X, e.Y, (Gui.Controls.DragDropEffects)e.AllowedEffect, (Gui.Controls.DragDropEffects)e.Effect)); }
/// <inheritdoc/> HRESULT IDropTarget.DragOver(MouseButtonState grfKeyState, POINT pt, ref DROPEFFECT pdwEffect) { System.Diagnostics.Debug.WriteLine($"IDropTarget.DragOver: effect={pdwEffect}"); var drgevent = CreateDragEventArgs(null, grfKeyState, pt, pdwEffect); DragOver?.Invoke(this, drgevent); lastEffect = pdwEffect = drgevent.Effect; return(HRESULT.S_OK); }
internal protected void RaiseDragEvent(string ev, DragEventArgs e) { switch (ev) { case "DragEnter": DragEnter?.Invoke(this, e); break; case "DragOver": DragOver?.Invoke(this, e); break; case "DragLeave": DragLeave?.Invoke(this, e); break; case "Drop": Drop?.Invoke(this, e); break; case "PreviewDragEnter": PreviewDragEnter?.Invoke(this, e); break; case "PreviewDragOver": PreviewDragOver?.Invoke(this, e); break; case "PreviewDragLeave": PreviewDragLeave?.Invoke(this, e); break; case "PreviewDrop": PreviewDrop?.Invoke(this, e); break; default: break; } }
protected virtual void OnDragOver(object?sender, DragEventArgs e) => DragOver?.Invoke(sender, e);
public void SendDragOver(DragEventArgs args) { DragOverCommand?.Execute(DragOverCommandParameter); DragOver?.Invoke(this, args); }
private void Edit_DragOver(object sender, DragEventArgs e) { DragOver?.Invoke(sender, e); }
public void OnDragOver(DragEventArgs e) => DragOver?.Invoke(e);
void treeView_DragOver(object sender, DragEventArgs e) { DragOver?.Invoke(this, e); }
internal void HandleDragOver(object sender, DragEventArgs e) { DragOver?.Invoke(sender, e); }
protected virtual void OnDragOver(FilesDragEventArgs e) { DragOver?.Invoke(this, e); }
public void OnDragOver(DragEventArgs dragEventArgs) { DragOver?.Invoke(dragEventArgs); }