ExtensionsFactory.GetStyleSheets(String, StyleSheet[]) Method
Renders the specified style sheets in the response.
Namespace: DevExpress.Web.Mvc.UI
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public MvcHtmlString GetStyleSheets(
string clientUIControlColorScheme,
params StyleSheet[] cssItems
)
#Parameters
Name | Type | Description |
---|---|---|
client |
String | A string value specifying the color scheme for client controls (“light” or “dark”). |
css |
Style |
An array of Style |
#Returns
Type | Description |
---|---|
Mvc |
An Mvc |
#Remarks
The GetStyleSheets 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 or Layout page).
Important
Attach all required style sheets within one Get
Every extension suite has its own set of required style sheets. Their optimization in performed inside the Get
Note
The Get
See Using Extensions in Razor Views to learn more.