Classes.

Set(string, bool) Method

Summary

Adds a or removes a style class to/from the collection.
Namespace
Avalonia.Controls
Containing Type
Classes

Syntax

public void Set(string name, bool value)

Remarks

Only standard classes may be added or removed via this method. To add pseudoclasses (classes beginning with a ':' character) use the protected PseudoClasses property.

Parameters

Name Type Description
name string The class names.
value bool If true adds the class, if false, removes it.

Return Value

Type Description
void