Specifies the default property for a control.
Assembly: System (in System.dll)
Thetype exposes the following members.
|Equals||Returns whether the value of the given object is equal to the current . (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.)|
Use the Name property to get the name of the default property.
The following example defines a control named MyControl. The class is marked with a that specifies MyProperty as the default property.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.