ModelEvent Class

Represents an event on an item.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Model.ModelEvent

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustInherit Class ModelEvent
public abstract class ModelEvent
public ref class ModelEvent abstract
[<AbstractClass>]
type ModelEvent =  class end
public abstract class ModelEvent

The ModelEvent type exposes the following members.

Constructors

  Name Description
Protected method ModelEvent When overridden in a derived class, initializes a new instance of the ModelEvent class.

Top

Properties

  Name Description
Public property EventType When overridden in a derived class, gets the data type of the delegate for this event.
Public property Handlers When overridden in a derived class, gets a collection of method names that should handle this event.
Public property IsBrowsable When overridden in a derived class, gets whether the event can be shown in a property window.
Public property Name When overridden in a derived class, gets the name of this event.
Public property Parent When overridden in a derived class, gets the parent of this event.

Top

Methods

  Name Description
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 GetAttributes(Type) Returns the attributes of the specified type that are declared on this event and the event's handler type.
Public method GetAttributes(TypeIdentifier) Returns the attributes of the specified type that are declared on this event and the event's handler type.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsEventOfType(Type) Determines whether this event is of the specified type, or implements the interface of the specified type.
Public method IsEventOfType(TypeIdentifier) Determines whether this event is of the specified type, or implements the interface of the specified type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

An event may be bound to one or more event handlers. At design time, event handling methods typically do not exist, so the Handlers collection of a ModelEvent is a collection of strings.

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.Model Namespace

Other Resources

WPF Designer Extensibility Architecture