StyleSheet
Adds CSS styling to controls.
When added from the Toolbox, the StyleSheet extender adds a CssClass property to all eligible controls. The source for the StyleSheet can be provided in the StyleSheetSource property of the component.
As of Wisej 2, all controls come with a CssClass and CssStyle property by default. No extender needed.
For a full list of properties, methods and events see the API documentation.

Features

CssClass

The CssClass property added from the extender allows any target control to use a CSS class that's defined in the StyleSheetSource property of the StyleSheet component.
StyleSheet Source:
CSS
1
.myClass {
2
background-color: red;
3
}
Copied!
Apply the CSS class to a control:
C#
1
this.styleSheet1.SetCssClass(this.button1, "myClass");
Copied!
Result:

Advanced

JavaScript Widget

Item
Description
Class name
"wisej.web.extender.StyleSheet"
Last modified 1mo ago
Export as PDF
Copy link