DragDrop.RemovePreviewQueryContinueDragHandler Metoda

Definicja

Usuwa program obsługi zdarzeń PreviewQueryContinueDrag z określonego obiektu zależności.

public:
 static void RemovePreviewQueryContinueDragHandler(System::Windows::DependencyObject ^ element, System::Windows::QueryContinueDragEventHandler ^ handler);
public static void RemovePreviewQueryContinueDragHandler (System.Windows.DependencyObject element, System.Windows.QueryContinueDragEventHandler handler);
static member RemovePreviewQueryContinueDragHandler : System.Windows.DependencyObject * System.Windows.QueryContinueDragEventHandler -> unit
Public Shared Sub RemovePreviewQueryContinueDragHandler (element As DependencyObject, handler As QueryContinueDragEventHandler)

Parametry

element
DependencyObject

Obiekt zależności (a UIElement lub ContentElement), z którego ma zostać usunięta procedura obsługi zdarzeń.

handler
QueryContinueDragEventHandler

Delegat, który odwołuje się do metody obsługi, która ma zostać usunięta.

Uwagi

Zdarzenie PreviewQueryContinueDrag występuje podczas operacji przeciągania i upuszczania i umożliwia źródło przeciągania w celu określenia, czy operacja przeciągania i upuszczania powinna zostać anulowana.

Ta metoda usuwa procedurę obsługi dla wersji PreviewQueryContinueDrag tunelowania zdarzenia. Aby usunąć procedurę obsługi dla wersji bubbling tego zdarzenia, zobacz RemoveQueryContinueDragHandler.

Dotyczy

Zobacz też