1 write to ListDragSource
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
657
ListDragSource
= new ListBox();
20 references to ListDragSource
System.Windows.Forms.UI.IntegrationTests (20)
DragDropTests.cs (20)
35
await MoveMouseToControlAsync(form.
ListDragSource
);
349
form.
ListDragSource
.GiveFeedback += (s, e) =>
378
var startRect = form.
ListDragSource
.DisplayRectangle;
379
var startCoordinates = form.
ListDragSource
.PointToScreen(GetCenter(startRect));
665
ListDragSource
.Items.AddRange("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
666
ListDragSource
.Location = new Point(10, 17);
667
ListDragSource
.Size = new Size(120, 225);
668
ListDragSource
.MouseDown += ListDragSource_MouseDown;
669
ListDragSource
.QueryContinueDrag += ListDragSource_QueryContinueDrag;
670
ListDragSource
.MouseUp += ListDragSource_MouseUp;
671
ListDragSource
.MouseMove += ListDragSource_MouseMove;
672
ListDragSource
.GiveFeedback += ListDragSource_GiveFeedback;
697
ListDragSource
,
709
_indexOfItemUnderMouseToDrag =
ListDragSource
.IndexFromPoint(e.X, e.Y);
768
DragDropEffects dropEffect =
ListDragSource
.DoDragDrop(
769
ListDragSource
.Items[_indexOfItemUnderMouseToDrag],
775
ListDragSource
.Items.RemoveAt(_indexOfItemUnderMouseToDrag);
779
ListDragSource
.SelectedIndex = _indexOfItemUnderMouseToDrag - 1;
781
else if (
ListDragSource
.Items.Count > 0)
783
ListDragSource
.SelectedIndex = 0;