Mouse.PreviewMouseDownOutsideCapturedElement 附加事件

定義

發生於在捕捉滑鼠事件的項目之外按下主要滑鼠按鍵時。Occurs when the primary mouse button is pressed outside the element that is capturing mouse events.

see AddPreviewMouseDownOutsideCapturedElementHandler, and RemovePreviewMouseDownOutsideCapturedElementHandler
see AddPreviewMouseDownOutsideCapturedElementHandler, and RemovePreviewMouseDownOutsideCapturedElementHandler
see AddPreviewMouseDownOutsideCapturedElementHandler, and RemovePreviewMouseDownOutsideCapturedElementHandler

備註

這是附加事件。This is an attached event. WPFWPF 將附加事件實作為路由事件。implements attached events as routed events. 附加事件基本上是參考事件的一種 XAMLXAML 語言概念,可以在未定義該事件的物件上處理,這 WPFWPF 也會讓事件通過路由來進行擴充。Attached events are fundamentally a XAMLXAML language concept for referencing events that can be handled on objects that do not define that event, which WPFWPF expands upon by also enabling the event to traverse a route. 附加事件在程式碼中沒有直接處理語法;若要在程式碼中附加路由事件的處理常式,您可以使用指定的 Add * 處理常式方法。Attached events do not have a direct handling syntax in code; to attach handlers for a routed event in code, you use a designated Add*Handler method. 如需詳細資訊,請參閱 附加事件總覽For details, see Attached Events Overview.

這個事件不會在基底元素上 resurfaced。This event is not resurfaced on base elements. 這主要是為了控制在控制群組合中嘗試協調滑鼠捕捉和滑鼠輸入的作者。It is mainly of concern to control authors that are attempting to reconcile mouse capture and mouse input within their control compositing.

路由事件資訊Routed Event Information

識別碼欄位Identifier field PreviewMouseDownOutsideCapturedElementEvent
路由策略Routing strategy 隧道Tunneling
代理人Delegate MouseButtonEventHandler

適用於