174 references to DragDrop
PresentationCore (163)
System\Windows\DragDrop.cs (35)
50
public static readonly RoutedEvent PreviewQueryContinueDragEvent = EventManager.RegisterRoutedEvent("PreviewQueryContinueDrag", RoutingStrategy.Tunnel, typeof(QueryContinueDragEventHandler), typeof(
DragDrop
));
75
public static readonly RoutedEvent QueryContinueDragEvent = EventManager.RegisterRoutedEvent("QueryContinueDrag", RoutingStrategy.Bubble, typeof(QueryContinueDragEventHandler), typeof(
DragDrop
));
100
public static readonly RoutedEvent PreviewGiveFeedbackEvent = EventManager.RegisterRoutedEvent("PreviewGiveFeedback", RoutingStrategy.Tunnel, typeof(GiveFeedbackEventHandler), typeof(
DragDrop
));
125
public static readonly RoutedEvent GiveFeedbackEvent = EventManager.RegisterRoutedEvent("GiveFeedback", RoutingStrategy.Bubble, typeof(GiveFeedbackEventHandler), typeof(
DragDrop
));
150
public static readonly RoutedEvent PreviewDragEnterEvent = EventManager.RegisterRoutedEvent("PreviewDragEnter", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
175
public static readonly RoutedEvent DragEnterEvent = EventManager.RegisterRoutedEvent("DragEnter", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
200
public static readonly RoutedEvent PreviewDragOverEvent = EventManager.RegisterRoutedEvent("PreviewDragOver", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
225
public static readonly RoutedEvent DragOverEvent = EventManager.RegisterRoutedEvent("DragOver", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
250
public static readonly RoutedEvent PreviewDragLeaveEvent = EventManager.RegisterRoutedEvent("PreviewDragLeave", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
275
public static readonly RoutedEvent DragLeaveEvent = EventManager.RegisterRoutedEvent("DragLeave", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
300
public static readonly RoutedEvent PreviewDropEvent = EventManager.RegisterRoutedEvent("PreviewDrop", RoutingStrategy.Tunnel, typeof(DragEventHandler), typeof(
DragDrop
));
325
public static readonly RoutedEvent DropEvent = EventManager.RegisterRoutedEvent("Drop", RoutingStrategy.Bubble, typeof(DragEventHandler), typeof(
DragDrop
));
347
internal static readonly RoutedEvent DragDropStartedEvent = EventManager.RegisterRoutedEvent("DragDropStarted", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
DragDrop
));
348
internal static readonly RoutedEvent DragDropCompletedEvent = EventManager.RegisterRoutedEvent("DragDropCompleted", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
DragDrop
));
700
args.RoutedEvent=
DragDrop
.PreviewQueryContinueDragEvent;
721
args.RoutedEvent =
DragDrop
.QueryContinueDragEvent;
757
args.RoutedEvent=
DragDrop
.PreviewGiveFeedbackEvent;
778
args.RoutedEvent =
DragDrop
.GiveFeedbackEvent;
945
DragDrop
.DragEnterEvent,
987
DragDrop
.DragLeaveEvent,
996
DragDrop
.DragEnterEvent,
1012
DragDrop
.DragOverEvent,
1027
DragDrop
.DragLeaveEvent,
1061
DragDrop
.DragLeaveEvent,
1107
DragDrop
.DropEvent,
1144
if (dragEvent ==
DragDrop
.DragEnterEvent)
1146
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragEnterEvent;
1148
else if (dragEvent ==
DragDrop
.DragOverEvent)
1150
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragOverEvent;
1152
else if (dragEvent ==
DragDrop
.DragLeaveEvent)
1154
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDragLeaveEvent;
1156
else if (dragEvent ==
DragDrop
.DropEvent)
1158
dragEventArgs.RoutedEvent =
DragDrop
.PreviewDropEvent;
1207
if (dragEvent ==
DragDrop
.DragEnterEvent)
1211
else if (dragEvent ==
DragDrop
.DragOverEvent)
System\Windows\DragEventArgs.cs (3)
56
if (!
DragDrop
.IsValidDragDropKeyStates(dragDropKeyStates))
61
if (!
DragDrop
.IsValidDragDropEffects(allowedEffects))
159
if (!
DragDrop
.IsValidDragDropEffects(value))
System\Windows\Generated\ContentElement.cs (36)
1827
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
1834
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
1835
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
1846
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
1853
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
1854
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
1865
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
1872
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
1873
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
1884
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
1891
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
1892
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
1903
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
1910
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
1911
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
1922
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
1929
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
1930
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
1941
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
1948
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
1949
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
1960
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
1967
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
1968
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
1979
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
1986
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
1987
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
1998
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
2005
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
2006
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
2017
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
2024
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
2025
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
2036
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
2043
add { AddHandler(
DragDrop
.DropEvent, value, false); }
2044
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
System\Windows\Generated\UIElement.cs (48)
798
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewQueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnPreviewQueryContinueDragThunk), false);
799
EventManager.RegisterClassHandler(type,
DragDrop
.QueryContinueDragEvent, new QueryContinueDragEventHandler(UIElement.OnQueryContinueDragThunk), false);
800
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewGiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnPreviewGiveFeedbackThunk), false);
801
EventManager.RegisterClassHandler(type,
DragDrop
.GiveFeedbackEvent, new GiveFeedbackEventHandler(UIElement.OnGiveFeedbackThunk), false);
802
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragEnterEvent, new DragEventHandler(UIElement.OnPreviewDragEnterThunk), false);
803
EventManager.RegisterClassHandler(type,
DragDrop
.DragEnterEvent, new DragEventHandler(UIElement.OnDragEnterThunk), false);
804
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragOverEvent, new DragEventHandler(UIElement.OnPreviewDragOverThunk), false);
805
EventManager.RegisterClassHandler(type,
DragDrop
.DragOverEvent, new DragEventHandler(UIElement.OnDragOverThunk), false);
806
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDragLeaveEvent, new DragEventHandler(UIElement.OnPreviewDragLeaveThunk), false);
807
EventManager.RegisterClassHandler(type,
DragDrop
.DragLeaveEvent, new DragEventHandler(UIElement.OnDragLeaveThunk), false);
808
EventManager.RegisterClassHandler(type,
DragDrop
.PreviewDropEvent, new DragEventHandler(UIElement.OnPreviewDropThunk), false);
809
EventManager.RegisterClassHandler(type,
DragDrop
.DropEvent, new DragEventHandler(UIElement.OnDropThunk), false);
3780
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
3787
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
3788
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
3799
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
3806
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
3807
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
3818
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
3825
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
3826
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
3837
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
3844
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
3845
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
3856
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
3863
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
3864
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
3875
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
3882
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
3883
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
3894
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
3901
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
3902
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
3913
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
3920
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
3921
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
3932
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
3939
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
3940
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
3951
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
3958
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
3959
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
3970
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
3977
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
3978
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
3989
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
3996
add { AddHandler(
DragDrop
.DropEvent, value, false); }
3997
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
System\Windows\Generated\UIElement3D.cs (36)
1548
public static readonly RoutedEvent PreviewQueryContinueDragEvent =
DragDrop
.PreviewQueryContinueDragEvent.AddOwner(_typeofThis);
1555
add { AddHandler(
DragDrop
.PreviewQueryContinueDragEvent, value, false); }
1556
remove { RemoveHandler(
DragDrop
.PreviewQueryContinueDragEvent, value); }
1567
public static readonly RoutedEvent QueryContinueDragEvent =
DragDrop
.QueryContinueDragEvent.AddOwner(_typeofThis);
1574
add { AddHandler(
DragDrop
.QueryContinueDragEvent, value, false); }
1575
remove { RemoveHandler(
DragDrop
.QueryContinueDragEvent, value); }
1586
public static readonly RoutedEvent PreviewGiveFeedbackEvent =
DragDrop
.PreviewGiveFeedbackEvent.AddOwner(_typeofThis);
1593
add { AddHandler(
DragDrop
.PreviewGiveFeedbackEvent, value, false); }
1594
remove { RemoveHandler(
DragDrop
.PreviewGiveFeedbackEvent, value); }
1605
public static readonly RoutedEvent GiveFeedbackEvent =
DragDrop
.GiveFeedbackEvent.AddOwner(_typeofThis);
1612
add { AddHandler(
DragDrop
.GiveFeedbackEvent, value, false); }
1613
remove { RemoveHandler(
DragDrop
.GiveFeedbackEvent, value); }
1624
public static readonly RoutedEvent PreviewDragEnterEvent =
DragDrop
.PreviewDragEnterEvent.AddOwner(_typeofThis);
1631
add { AddHandler(
DragDrop
.PreviewDragEnterEvent, value, false); }
1632
remove { RemoveHandler(
DragDrop
.PreviewDragEnterEvent, value); }
1643
public static readonly RoutedEvent DragEnterEvent =
DragDrop
.DragEnterEvent.AddOwner(_typeofThis);
1650
add { AddHandler(
DragDrop
.DragEnterEvent, value, false); }
1651
remove { RemoveHandler(
DragDrop
.DragEnterEvent, value); }
1662
public static readonly RoutedEvent PreviewDragOverEvent =
DragDrop
.PreviewDragOverEvent.AddOwner(_typeofThis);
1669
add { AddHandler(
DragDrop
.PreviewDragOverEvent, value, false); }
1670
remove { RemoveHandler(
DragDrop
.PreviewDragOverEvent, value); }
1681
public static readonly RoutedEvent DragOverEvent =
DragDrop
.DragOverEvent.AddOwner(_typeofThis);
1688
add { AddHandler(
DragDrop
.DragOverEvent, value, false); }
1689
remove { RemoveHandler(
DragDrop
.DragOverEvent, value); }
1700
public static readonly RoutedEvent PreviewDragLeaveEvent =
DragDrop
.PreviewDragLeaveEvent.AddOwner(_typeofThis);
1707
add { AddHandler(
DragDrop
.PreviewDragLeaveEvent, value, false); }
1708
remove { RemoveHandler(
DragDrop
.PreviewDragLeaveEvent, value); }
1719
public static readonly RoutedEvent DragLeaveEvent =
DragDrop
.DragLeaveEvent.AddOwner(_typeofThis);
1726
add { AddHandler(
DragDrop
.DragLeaveEvent, value, false); }
1727
remove { RemoveHandler(
DragDrop
.DragLeaveEvent, value); }
1738
public static readonly RoutedEvent PreviewDropEvent =
DragDrop
.PreviewDropEvent.AddOwner(_typeofThis);
1745
add { AddHandler(
DragDrop
.PreviewDropEvent, value, false); }
1746
remove { RemoveHandler(
DragDrop
.PreviewDropEvent, value); }
1757
public static readonly RoutedEvent DropEvent =
DragDrop
.DropEvent.AddOwner(_typeofThis);
1764
add { AddHandler(
DragDrop
.DropEvent, value, false); }
1765
remove { RemoveHandler(
DragDrop
.DropEvent, value); }
System\Windows\GiveFeedbackEventArgs.cs (1)
42
if (!
DragDrop
.IsValidDragDropEffects(effects))
System\Windows\InterOp\HwndSource.cs (2)
341
DragDrop
.RegisterDropTarget(_hwndWrapper.Handle);
2592
DragDrop
.RevokeDropTarget(_hwndWrapper.Handle);
System\Windows\QueryContinueDragEventArgs.cs (2)
44
if (!
DragDrop
.IsValidDragDropKeyStates(dragDropKeyStates))
92
if (!
DragDrop
.IsValidDragAction(value))
PresentationFramework (11)
System\Windows\Controls\Primitives\Popup.cs (2)
61
EventManager.RegisterClassHandler(typeof(Popup),
DragDrop
.DragDropStartedEvent, new RoutedEventHandler(OnDragDropStarted), true);
62
EventManager.RegisterClassHandler(typeof(Popup),
DragDrop
.DragDropCompletedEvent, new RoutedEventHandler(OnDragDropCompleted), true);
System\windows\Documents\TextEditorDragDrop.cs (9)
57
EventManager.RegisterClassHandler(controlType,
DragDrop
.DropEvent, new DragEventHandler(OnClearState),true);
58
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragLeaveEvent, new DragEventHandler(OnClearState), true);
62
EventManager.RegisterClassHandler(controlType,
DragDrop
.QueryContinueDragEvent, new QueryContinueDragEventHandler(OnQueryContinueDrag));
63
EventManager.RegisterClassHandler(controlType,
DragDrop
.GiveFeedbackEvent, new GiveFeedbackEventHandler(OnGiveFeedback));
64
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragEnterEvent, new DragEventHandler(OnDragEnter));
65
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragOverEvent, new DragEventHandler(OnDragOver));
66
EventManager.RegisterClassHandler(controlType,
DragDrop
.DragLeaveEvent, new DragEventHandler(OnDragLeave));
69
EventManager.RegisterClassHandler(controlType,
DragDrop
.DropEvent, new DragEventHandler(OnDrop));
239
resultingDragDropEffects =
DragDrop
.DoDragDrop( //