1 write to ListDragSource
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
600
ListDragSource
= new ListBox();
20 references to ListDragSource
System.Windows.Forms.UI.IntegrationTests (20)
DragDropTests.cs (20)
33
await MoveMouseToControlAsync(form.
ListDragSource
);
347
form.
ListDragSource
.GiveFeedback += (s, e) =>
376
var startRect = form.
ListDragSource
.DisplayRectangle;
377
var startCoordinates = form.
ListDragSource
.PointToScreen(GetCenter(startRect));
608
ListDragSource
.Items.AddRange("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
609
ListDragSource
.Location = new Point(10, 17);
610
ListDragSource
.Size = new Size(120, 225);
611
ListDragSource
.MouseDown += ListDragSource_MouseDown;
612
ListDragSource
.QueryContinueDrag += ListDragSource_QueryContinueDrag;
613
ListDragSource
.MouseUp += ListDragSource_MouseUp;
614
ListDragSource
.MouseMove += ListDragSource_MouseMove;
615
ListDragSource
.GiveFeedback += ListDragSource_GiveFeedback;
640
ListDragSource
,
652
_indexOfItemUnderMouseToDrag =
ListDragSource
.IndexFromPoint(e.X, e.Y);
711
DragDropEffects dropEffect =
ListDragSource
.DoDragDrop(
712
ListDragSource
.Items[_indexOfItemUnderMouseToDrag],
718
ListDragSource
.Items.RemoveAt(_indexOfItemUnderMouseToDrag);
722
ListDragSource
.SelectedIndex = _indexOfItemUnderMouseToDrag - 1;
724
else if (
ListDragSource
.Items.Count > 0)
726
ListDragSource
.SelectedIndex = 0;