Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Mouse.GotMouseCapture Attached Event

Occurs when this element (or a child element along the route) captures the mosue.

Namespace: System.Windows.Input
Assembly: PresentationCore (in PresentationCore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

See Mouse.AddGotMouseCaptureHandler, Mouse.RemoveGotMouseCaptureHandler
See Mouse.AddGotMouseCaptureHandler, Mouse.RemoveGotMouseCaptureHandler
See Mouse.AddGotMouseCaptureHandler, Mouse.RemoveGotMouseCaptureHandler
<object Mouse.GotMouseCapture="MouseEventHandler" .../>

Identifier field

GotMouseCaptureEvent

Routing strategy

Bubbling

Delegate

MouseEventHandler

  • There is no defined corresponding tunneling event.

When an element captures the mouse, it receives mouse input whether or not the cursor is within its borders.

Because of the bubbling routing, the actual element that has capture might be a child element, not necessarily the element where the event handler is actually attached. Check the Source in the event arguments to determine the actual element that has mouse capture.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Community Additions

Show:
© 2014 Microsoft