EventBindingService Class
Defines methods to create, remove, display and query the contents of the event handling class for the current editing context.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
'Declaration
Public MustInherit Class EventBindingService
'Usage
Dim instance As EventBindingService
public abstract class EventBindingService
public ref class EventBindingService abstract
public abstract class EventBindingService
Remarks
There are two ways to associate events with event handlers in Visual Studio. The first is by using the Handles keyword, and the second is by using the AddHandler and RemoveHandler methods. In C#, using += and -= with an EventHandler corresponds to AddHandler and RemoveHandler. Both ways can be used in Visual Basic. Only the second way can be used in C#. For more information, see the following topics:
Creating Event Handlers in Windows Forms
You can use the EventBindingService class to extend this behavior.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Services.EventBindingService
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Services Namespace
Other Resources
WPF Designer Extensibility Architecture
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added new members: OnEventHandlerGenerated, RemoveHandlesForName, EventHandlerGenerated |
SP1 feature change. |