StyledElement.

PseudoClass<TOwner>(AvaloniaProperty<bool>, string) Method

Summary

Adds a pseudo-class to be set when a property is true.
Namespace
Avalonia
Containing Type
StyledElement

Syntax

protected static void PseudoClass<TOwner>(AvaloniaProperty<bool> property, string className) 
    where TOwner : class, IStyledElement

Type Parameters

Name Description
TOwner The type to apply the pseudo-class to.

Parameters

Name Type Description
property AvaloniaProperty<bool> The property.
className string The pseudo-class.

Return Value

Type Description
void