예제 #1
0
        public async Task <DropEventArgs> DoDragDrop(object data)
        {
            dragDropTcs = new TaskCompletionSource <DropEventArgs>();

            this.IsDragging = true;
            this.dragObject = data;

            VisualProvider?.ShowVisual(data, CursorHelper.GetRawCursorPosition());

            return(await dragDropTcs.Task);
        }
예제 #2
0
 public void FollowMouse()
 {
     FollowMouse(CursorHelper.GetRawCursorPosition());
 }
예제 #3
0
 public ContextMenu()
     : this(CursorHelper.GetRawCursorPosition())
 {
 }