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