1 write to ListDragSource
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
598
ListDragSource
= new ListBox();
20 references to ListDragSource
System.Windows.Forms.UI.IntegrationTests (20)
DragDropTests.cs (20)
33
await MoveMouseToControlAsync(form.
ListDragSource
);
345
form.
ListDragSource
.GiveFeedback += (s, e) =>
374
var startRect = form.
ListDragSource
.DisplayRectangle;
375
var startCoordinates = form.
ListDragSource
.PointToScreen(GetCenter(startRect));
606
ListDragSource
.Items.AddRange("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
607
ListDragSource
.Location = new Point(10, 17);
608
ListDragSource
.Size = new Size(120, 225);
609
ListDragSource
.MouseDown += ListDragSource_MouseDown;
610
ListDragSource
.QueryContinueDrag += ListDragSource_QueryContinueDrag;
611
ListDragSource
.MouseUp += ListDragSource_MouseUp;
612
ListDragSource
.MouseMove += ListDragSource_MouseMove;
613
ListDragSource
.GiveFeedback += ListDragSource_GiveFeedback;
638
ListDragSource
,
650
_indexOfItemUnderMouseToDrag =
ListDragSource
.IndexFromPoint(e.X, e.Y);
709
DragDropEffects dropEffect =
ListDragSource
.DoDragDrop(
710
ListDragSource
.Items[_indexOfItemUnderMouseToDrag],
716
ListDragSource
.Items.RemoveAt(_indexOfItemUnderMouseToDrag);
720
ListDragSource
.SelectedIndex = _indexOfItemUnderMouseToDrag - 1;
722
else if (
ListDragSource
.Items.Count > 0)
724
ListDragSource
.SelectedIndex = 0;