177 references to DragDrop
PresentationCore (163)
Core\CSharp\System\Windows\DragDrop.cs (35)
55
public static readonly RoutedEvent PreviewQueryContinueDragEvent = EventManager.RegisterRoutedEvent("PreviewQueryContinueDrag", RoutingStrategy.Tunnel, typeof(QueryContinueDragEventHandler), typeof(
DragDrop
));
80
public static readonly RoutedEvent QueryContinueDragEvent = EventManager.RegisterRoutedEvent("QueryContinueDrag", RoutingStrategy.Bubble, typeof(QueryContinueDragEventHandler), typeof(
DragDrop
));
105
public static readonly RoutedEvent PreviewGiveFeedbackEvent = EventManager.RegisterRoutedEvent("PreviewGiveFeedback", RoutingStrategy.Tunnel, typeof(GiveFeedbackEventHandler), typeof(
DragDrop
));
130
public static readonly RoutedEvent GiveFeedbackEvent = EventManager.RegisterRoutedEvent("GiveFeedback", RoutingStrategy.Bubble, typeof(GiveFeedbackEventHandler), typeof(
DragDrop
));
155
public static readonly RoutedEvent PreviewDragEnterEvent = EventManager.RegisterRoutedEvent("PreviewDragEnter", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
180
public static readonly RoutedEvent DragEnterEvent = EventManager.RegisterRoutedEvent("DragEnter", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
205
public static readonly RoutedEvent PreviewDragOverEvent = EventManager.RegisterRoutedEvent("PreviewDragOver", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
230
public static readonly RoutedEvent DragOverEvent = EventManager.RegisterRoutedEvent("DragOver", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
255
public static readonly RoutedEvent PreviewDragLeaveEvent = EventManager.RegisterRoutedEvent("PreviewDragLeave", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
280
public static readonly RoutedEvent DragLeaveEvent = EventManager.RegisterRoutedEvent("DragLeave", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
305
public static readonly RoutedEvent PreviewDropEvent = EventManager.RegisterRoutedEvent("PreviewDrop", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
330
public static readonly RoutedEvent DropEvent = EventManager.RegisterRoutedEvent("Drop", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
352
internal static readonly RoutedEvent DragDropStartedEvent = EventManager.RegisterRoutedEvent("DragDropStarted", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
DragDrop
));
353
internal static readonly RoutedEvent DragDropCompletedEvent = EventManager.RegisterRoutedEvent("DragDropCompleted", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
DragDrop
));
738
args.RoutedEvent=
DragDrop
.PreviewQueryContinueDragEvent;
759
args.RoutedEvent =
DragDrop
.QueryContinueDragEvent;
795
args.RoutedEvent=
DragDrop
.PreviewGiveFeedbackEvent;
816
args.RoutedEvent =
DragDrop
.GiveFeedbackEvent;
983
DragDrop
.DragEnterEvent,
1025
DragDrop
.DragLeaveEvent,
1034
DragDrop
.DragEnterEvent,
1050
DragDrop
.DragOverEvent,
1065
DragDrop
.DragLeaveEvent,
1099
DragDrop
.DragLeaveEvent,
1145
DragDrop
.DropEvent,
1182
if (dragEvent ==
DragDrop
.DragEnterEvent)
1184
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragEnterEvent;
1186
else if (dragEvent ==
DragDrop
.DragOverEvent)
1188
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragOverEvent;
1190
else if (dragEvent ==
DragDrop
.DragLeaveEvent)
1192
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragLeaveEvent;
1194
else if (dragEvent ==
DragDrop
.DropEvent)
1196
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDropEvent;
1245
if (dragEvent ==
DragDrop
.DragEnterEvent)
1249
else if (dragEvent ==
DragDrop
.DragOverEvent)
Core\CSharp\System\Windows\DragEventArgs.cs (3)
59
if (!
DragDrop
.IsValidDragDropKeyStates(dragDropKeyStates))
64
if (!
DragDrop
.IsValidDragDropEffects(allowedEffects))
165
if (!
DragDrop
.IsValidDragDropEffects(value))
Core\CSharp\System\Windows\Generated\ContentElement.cs (36)
1887
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
1894
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
1895
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
1906
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
1913
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
1914
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
1925
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
1932
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
1933
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
1944
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
1951
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
1952
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
1963
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
1970
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
1971
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
1982
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
1989
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
1990
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
2001
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
2008
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
2009
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
2020
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
2027
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
2028
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
2039
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
2046
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
2047
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
2058
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
2065
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
2066
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
2077
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
2084
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
2085
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
2096
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
2103
add { AddHandler(
DragDrop
.DropEvent, value, false); }
2104
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement.cs (48)
863
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false);
864
EventManager.RegisterClassHandler(type,
DragDrop
.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false);
865
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false);
866
EventManager.RegisterClassHandler(type,
DragDrop
.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false);
867
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false);
868
EventManager.RegisterClassHandler(type,
DragDrop
.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false);
869
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false);
870
EventManager.RegisterClassHandler(type,
DragDrop
.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false);
871
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false);
872
EventManager.RegisterClassHandler(type,
DragDrop
.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false);
873
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false);
874
EventManager.RegisterClassHandler(type,
DragDrop
.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false);
4165
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
4172
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
4173
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
4184
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
4191
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
4192
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
4203
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
4210
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
4211
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
4222
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
4229
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
4230
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
4241
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
4248
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
4249
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
4260
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
4267
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
4268
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
4279
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
4286
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
4287
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
4298
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
4305
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
4306
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
4317
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
4324
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
4325
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
4336
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
4343
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
4344
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
4355
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
4362
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
4363
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
4374
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
4381
add { AddHandler(
DragDrop
.DropEvent, value, false); }
4382
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
Core\CSharp\System\Windows\Generated\UIElement3D.cs (36)
1593
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
1600
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
1601
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
1612
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
1619
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
1620
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
1631
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
1638
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
1639
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
1650
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
1657
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
1658
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
1669
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
1676
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
1677
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
1688
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
1695
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
1696
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
1707
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
1714
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
1715
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
1726
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
1733
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
1734
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
1745
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
1752
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
1753
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
1764
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
1771
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
1772
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
1783
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
1790
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
1791
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
1802
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
1809
add { AddHandler(
DragDrop
.DropEvent, value, false); }
1810
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
Core\CSharp\System\Windows\GiveFeedbackEventArgs.cs (1)
44
if (!
DragDrop
.IsValidDragDropEffects(effects))
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
391
DragDrop
.RegisterDropTarget(_hwndWrapper.Handle);
2950
DragDrop
.RevokeDropTarget(_hwndWrapper.Handle);
Core\CSharp\System\Windows\QueryContinueDragEventArgs.cs (2)
47
if (!
DragDrop
.IsValidDragDropKeyStates(dragDropKeyStates))
95
if (!
DragDrop
.IsValidDragAction(value))
PresentationFramework (11)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
62
EventManager.RegisterClassHandler(typeof(Popup),
DragDrop
.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true);
63
EventManager.RegisterClassHandler(typeof(Popup),
DragDrop
.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (9)
60
EventManager.RegisterClassHandler(controlType,
DragDrop
.DropEvent, new DragEventHandler(OnClearState),true);
61
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragLeaveEvent, new DragEventHandler(OnClearState), true);
65
EventManager.RegisterClassHandler(controlType,
DragDrop
.QueryContinueDragEvent, new QueryContinueDragEventHandler(OnQueryContinueDrag));
66
EventManager.RegisterClassHandler(controlType,
DragDrop
.GiveFeedbackEvent, new GiveFeedbackEventHandler(OnGiveFeedback));
67
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragEnterEvent, new DragEventHandler(OnDragEnter));
68
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragOverEvent, new DragEventHandler(OnDragOver));
69
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragLeaveEvent, new DragEventHandler(OnDragLeave));
72
EventManager.RegisterClassHandler(controlType,
DragDrop
.DropEvent, new DragEventHandler(OnDrop));
250
resultingDragDropEffects =
DragDrop
.DoDragDrop( //
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (2)
117
DragDrop
.DoDragDrop(designerView, dataObject, DragDropEffects.Move | DragDropEffects.Copy | DragDropEffects.Scroll | DragDropEffects.Link);
167
DragDrop
.DoDragDrop(GetCompositeView(draggedViewElement), dataObject, DragDropEffects.Move | DragDropEffects.Copy | DragDropEffects.Scroll | DragDropEffects.Link);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
362
DragDrop
.DoDragDrop(this, dataObject, DragDropEffects.Link | DragDropEffects.Copy);