Share via


EventBindingService Members

Include Protected Members
Include Inherited Members

Defines methods to create, remove, display and query the contents of the event handling class for the current editing context.

The EventBindingService type exposes the following members.

Constructors

 

Name

Description

Protected method

EventBindingService

When overridden in a derived class, initializes a new instance of the EventBindingService class.

Top

Methods

 

Name

Description

Public method

AddEventHandler

When overridden in a derived class, requests that a specified method be declared as handling a specified event.

Public method

AllowClassNameForMethodName

When overridden in a derived class, determines whether a class name can be used in creating a unique method name in a language.

Public method

CreateMethod

When overridden in a derived class, creates a method that handles an event.

Public method

CreateUniqueMethodName

When overridden in a derived class, returns a unique method name for an event handler.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetCompatibleMethods

When overridden in a derived class, returns the names of methods that are compatible with a specified event.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetMethodHandlers

When overridden in a derived class, returns a list of methods that handle a specified event.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

IsExistingMethodName

When overridden in a derived class, determines whether a method name that handles a specified event already exists.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Protected method

OnEventHandlerGenerated

Raises the EventHandlerGenerated event.

Public method

RemoveHandle

When overridden in a derived class, requests that a specific method stop handling a specific event by removing it from a Handles clause.

Public method

RemoveHandlesForName

Removes the event handlers for the specified element.

Public method

RemoveMethod

When overridden in a derived class, requests that a specific method stop handling a specific event by removing it from an event handling class.

Public method

SetClassName

When overridden in a derived class, identifies the methods that the binding service is referring to as belonging to the specified class.

Public method

ShowMethod

When overridden in a derived class, attempts to display the specified method to the user.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

ValidateMethodName

When overridden in a derived class, determines whether a method name is a valid method name and raises an exception if it is not.

Top

Events

 

Name

Description

Public event

EventHandlerGenerated

Occurs when a method is associated with a ModelEvent as a result of a call to the AddEventHandler method.

Top

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace