Version

UI Roles

In order to style an application using Application Styling you need to understand the concept of Roles, and how they relate to the controls. A Role is used to indicate what type of UI element or behavior to which a particular cascading style sheet class is going to be applied. There are some general roles that are shared among the controls (e.g. Hover, Selected, Control). But there are also control-specific roles; for example, WebTree™ has roles such as Island, Node, Parent, and Leaf.

A list of every role for every control, as well as all the shared roles, would be too long. The easiest way to learn about the different roles, and what effect each one has on a control is to use the roles in the Infragistics AppStylist® for ASP.NET product. This application uses a tree to show all the controls, with each control’s node containing sub-nodes that are the control’s available roles. For more information on this program, see Styling Your Application.