Visual Basic (Declaration)
Public Event LostMouseCapture As MouseEventHandler
Dim instance As UIElement
Dim handler As MouseEventHandler
AddHandler instance.LostMouseCapture, handler
public event MouseEventHandler LostMouseCapture
<uiElement LostMouseCapture="eventhandler"/>