DragDropManager.TargetRequested 事件

定义

当对象注册为 的放置目标时发生 DragDropManager

// Register
event_token TargetRequested(TypedEventHandler<DragDropManager, DropOperationTargetRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void TargetRequested(event_token const* cookie) const;

// Revoke with event_revoker
DragDropManager::TargetRequested_revoker TargetRequested(auto_revoke_t, TypedEventHandler<DragDropManager, DropOperationTargetRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<DragDropManager,DropOperationTargetRequestedEventArgs> TargetRequested;
function onTargetRequested(eventArgs) { /* Your code */ }
dragDropManager.addEventListener("targetrequested", onTargetRequested);
dragDropManager.removeEventListener("targetrequested", onTargetRequested);
- or -
dragDropManager.ontargetrequested = onTargetRequested;
Public Custom Event TargetRequested As TypedEventHandler(Of DragDropManager, DropOperationTargetRequestedEventArgs) 

事件类型

适用于