EventObserver Constructor

Creates an instance of EventObserver and attaches to the supplied event on the supplied target. Call dispose to detach.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
Public Sub New ( _
    eventInfo As EventInfo, _
    target As Object, _
    handler As Delegate _
)
'Usage
Dim eventInfo As EventInfo
Dim target As Object
Dim handler As Delegate

Dim instance As New EventObserver(eventInfo, target, handler)
public EventObserver (
    EventInfo eventInfo,
    Object target,
    Delegate handler
)
public:
EventObserver (
    EventInfo^ eventInfo, 
    Object^ target, 
    Delegate^ handler
)
public EventObserver (
    EventInfo eventInfo, 
    Object target, 
    Delegate handler
)
public function EventObserver (
    eventInfo : EventInfo, 
    target : Object, 
    handler : Delegate
)

See Also

Reference

EventObserver Class
EventObserver Members
System.Windows.Interactivity Namespace