aspnet-devexpress-dot-web-dot-aspxfilemanager-825e8e6d.md
Gets or sets the path to a CSS file that defines the editor’s appearance.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public override string CssFilePath { get; set; }
Public Overrides Property CssFilePath As String
| Type | Description |
|---|---|
| String |
A String value that specifies the path to the required CSS file.
|
Use the CssFilePath property together with the ASPxFileManager.CssPostfix property in order to define a web control’s custom appearance using a separate CSS file. The CssFilePath property specifies the CSS file’s location which can be set by either an absolute or relative path. The specified CSS file’s content can be provided by copying the content of a sample CSS file (which can be invoked by clicking the “View CSS Sample” command in a control’s designer) and supplementing class names with a custom postfix set via the ASPxFileManager.CssPostfix property.
The style properties defined at the web control’s level override the corresponding appearance settings declared in the specified CSS file.
Web Forms (in markup):
<dx:ASPxFileManager ID="fileManager" runat="server" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css" ...>
...
</dx:ASPxFileManager>
Web Forms (in code):
ASPxFileManager fm = new ASPxFileManager();
...
fm.CssFilePath=Url.Content(~/App_Themes/SoftOrange/{0}/styles.css);
MVC:
@Html.DevExpress().FileManager( settings => {
settings.Name = "fileManager";
settings.CssFilePath=Url.Content(~/App_Themes/SoftOrange/{0}/styles.css);
...
}).BindToFolder(Model).GetHtml()
See Also