Share via


Thumb.DragStarted 事件

定義

當 Thumb控制項收到邏輯焦點和滑鼠擷取時引發。

// Register
event_token DragStarted(DragStartedEventHandler const& handler) const;

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

// Revoke with event_revoker
Thumb::DragStarted_revoker DragStarted(auto_revoke_t, DragStartedEventHandler const& handler) const;
public event DragStartedEventHandler DragStarted;
function onDragStarted(eventArgs) { /* Your code */ }
thumb.addEventListener("dragstarted", onDragStarted);
thumb.removeEventListener("dragstarted", onDragStarted);
- or -
thumb.ondragstarted = onDragStarted;
Public Custom Event DragStarted As DragStartedEventHandler 
<Thumb DragStarted="eventhandler"/>

事件類型

適用於