ControlExtensions.

Set(IPseudoClasses, string, IObservable<bool>) Method

Summary

Sets a pseudoclass depending on an observable trigger.
Namespace
Avalonia.Controls
Containing Type
ControlExtensions

Syntax

public static IDisposable Set(this IPseudoClasses classes, string name, IObservable<bool> trigger)

Parameters

Name Type Description
classes IPseudoClasses The pseudoclasses collection.
name string The name of the pseudoclass to set.
trigger IObservable<bool> The trigger: true adds the pseudoclass, false removes.

Return Value

Type Description
IDisposable A disposable used to cancel the subscription.