This documentation is archived and is not being maintained.

StyleReference Property (Common)

.NET Framework 1.1

Sets or returns a reference to the style properties for a control.

public virtual string StyleReference {
   get,
   set
}

Inheritance

The following is a list of the classes that inherit the StyleReference property from the MobileControl base class.

AdRotator Class PagedControl Class
Calendar Class Panel Class
Command Class PhoneCall Class
CompareValidator Class RangeValidator Class
CustomValidator Class RegularExpressionValidator Class
Form Class RequiredFieldValidator Class
Image Class SelectionList Class
Label Class TextBox Class
Link Class TextControl Class
List Class TextView Class
ObjectList Class ValidationSummary Class

Remarks

The value of the StyleReference property must be the Name property of a Style object. You can use the StyleReference property to share styles across controls, either by using inheritance or by using the StyleReference property of a style sheet. For more information, see the Styles documentation. To find out how to create a new style, see the Creating New Styles documentation.

See Also

Applies to: MobileControl Class

Show: