The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DefaultEventAttribute Class
Silverlight
Specifies the default event for a control.
Namespace: System.ComponentModel
Assembly: System (in System.dll)
The DefaultEventAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DefaultEventAttribute | Initializes a new instance of the DefaultEventAttribute class. |
| Name | Description | |
|---|---|---|
![]() | Equals | Returns whether the value of the given object is equal to the current DefaultEventAttribute. (Overrides Attribute.Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides Attribute.GetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The following example defines a collection class named MyCollection. The class is marked with a DefaultEventAttribute that specifies CollectionChanged as the default event.
private MouseEventHandler onMouseDown; public event MouseEventHandler MouseDown { add { onMouseDown += value; } remove { onMouseDown -= value; } } // Insert additional code.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
Show:




