1 write to ListDragSource
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
656
ListDragSource
= new ListBox();
20 references to ListDragSource
System.Windows.Forms.UI.IntegrationTests (20)
DragDropTests.cs (20)
34
await MoveMouseToControlAsync(form.
ListDragSource
);
348
form.
ListDragSource
.GiveFeedback += (s, e) =>
377
var startRect = form.
ListDragSource
.DisplayRectangle;
378
var startCoordinates = form.
ListDragSource
.PointToScreen(GetCenter(startRect));
664
ListDragSource
.Items.AddRange("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
665
ListDragSource
.Location = new Point(10, 17);
666
ListDragSource
.Size = new Size(120, 225);
667
ListDragSource
.MouseDown += ListDragSource_MouseDown;
668
ListDragSource
.QueryContinueDrag += ListDragSource_QueryContinueDrag;
669
ListDragSource
.MouseUp += ListDragSource_MouseUp;
670
ListDragSource
.MouseMove += ListDragSource_MouseMove;
671
ListDragSource
.GiveFeedback += ListDragSource_GiveFeedback;
696
ListDragSource
,
708
_indexOfItemUnderMouseToDrag =
ListDragSource
.IndexFromPoint(e.X, e.Y);
767
DragDropEffects dropEffect =
ListDragSource
.DoDragDrop(
768
ListDragSource
.Items[_indexOfItemUnderMouseToDrag],
774
ListDragSource
.Items.RemoveAt(_indexOfItemUnderMouseToDrag);
778
ListDragSource
.SelectedIndex = _indexOfItemUnderMouseToDrag - 1;
780
else if (
ListDragSource
.Items.Count > 0)
782
ListDragSource
.SelectedIndex = 0;