DragDropManager.TargetRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当对象注册为 的放置目标时发生 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)