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