예제 #1
0
 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));
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
파일: TabItem.cs 프로젝트: JaykeBird/ssui
        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;
            }
        }
예제 #4
0
 protected virtual void OnDragOver(object?sender, DragEventArgs e)
 => DragOver?.Invoke(sender, e);
예제 #5
0
 public void SendDragOver(DragEventArgs args)
 {
     DragOverCommand?.Execute(DragOverCommandParameter);
     DragOver?.Invoke(this, args);
 }
예제 #6
0
 /// <summary>
 /// Event handler for <see cref="DragOver"/> event callback.
 /// </summary>
 /// <param name="eventArgs">Supplies information about an drag event that is being raised.</param>
 /// <returns>A task that represents the asynchronous operation.</returns>
 protected virtual Task OnDragOverHandler(DragEventArgs eventArgs)
 {
     return(DragOver.InvokeAsync(eventArgs));
 }
예제 #7
0
 private void Edit_DragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(sender, e);
 }
예제 #8
0
 private void rectangle_DragEnter(object sender, DragEventArgs e)
 {
     DragOver.Begin();
 }
예제 #9
0
 public void OnDragOver(DragEventArgs dragEventArgs)
 {
     DragOver.SafeInvoke(dragEventArgs);
 }
예제 #10
0
 public void OnDragOver(DragEventArgs e) => DragOver?.Invoke(e);
예제 #11
0
 void treeView_DragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(this, e);
 }
예제 #12
0
 internal void HandleDragOver(object sender, DragEventArgs e)
 {
     DragOver?.Invoke(sender, e);
 }
예제 #13
0
 protected virtual void OnDragOver(FilesDragEventArgs e)
 {
     DragOver?.Invoke(this, e);
 }