Skip to main content

IPseudoClasses Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Exposes an interface for setting pseudoclasses on a Classes collection.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IPseudoClasses
View Source

Methods

Add(String)Adds a pseudoclass to the collection.
Contains(String)Returns whether a pseudoclass is present in the collection.
Remove(String)Removes a pseudoclass from the collection.

Extension Methods

Set(String, Boolean)Adds or removes a pseudoclass depending on a boolean value.
(Defined by PseudolassesExtensions)
Set(String, IObservable(Boolean))Sets a pseudoclass depending on an observable trigger.
(Defined by ControlExtensions)

See Also

Reference

Avalonia.Controls Namespace