ClassesSet Method
Adds a or removes a style class to/from the collection.
Namespace: Avalonia.ControlsAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void Set(
string name,
bool value
)
Public Sub Set (
name As String,
value As Boolean
)
member Set :
name : string *
value : bool -> unit
Parameters
- name String
- The class names.
- value Boolean
- If true adds the class, if false, removes it.
Only standard classes may be added or removed via this method. To add pseudoclasses (classes
beginning with a ':' character) use the protected
PseudoClasses
property.