ExtensionsFactory.RenderStyleSheets(Page, String, StyleSheet[]) Method

Renders the specified style sheets in the response.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v20.2.dll


public void RenderStyleSheets(
    Page page,
    string clientUIControlColorScheme,
    params StyleSheet[] cssItems
Public Sub RenderStyleSheets(
    page As Page,
    clientUIControlColorScheme As String,
    ParamArray cssItems As StyleSheet()


Name Type Description
page Page

The page object.

clientUIControlColorScheme String

A string value specifying the color scheme for client controls ("light" or "dark").

cssItems StyleSheet[]

An array of StyleSheet objects defining the attached style sheets.


The RenderStyleSheets method is used to attach the necessary stylesheet files of the desired DevExpress theme. This method should be called within the HEAD tag of view pages (in most cases, it's reasonable to call it in the Site.Master page).

See Applying Themes to learn more.

See Also