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