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