StyleSheet

Adds CSS styling to controls.

The Wisej.NET StyleSheet extender adds a CssClass property to eligible controls when added from the Toolbox. Define styles in the component's StyleSheetSource property.

circle-exclamation
circle-info

For a full list of properties, methods and events see the API documentation.arrow-up-right

Features

CssClass

The CssClass property enables controls to use CSS classes defined in the StyleSheet component's StyleSheetSource property.

StyleSheet Source:

.myClass {
    background-color: red;
}

Apply the CSS class to a control:

this.styleSheet1.SetCssClass(this.button1, "myClass");

Result:

Button with myClass CSS applied

Advanced

JavaScript Widget

Item
Description

Class name

"wisej.web.extender.StyleSheet"

Last updated

Was this helpful?