Links

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
.myClass {
background-color: red;
}
Apply the CSS class to a control:
C#
this.styleSheet1.SetCssClass(this.button1, "myClass");
Result:

Advanced

JavaScript Widget

Item
Description
Class name
"wisej.web.extender.StyleSheet"
Source code
Last modified 9mo ago