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