StyledElement.

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

Summary

Adds a pseudo-class to be set when a property equals a certain value.
Namespace
Avalonia
Containing Type
StyledElement

Syntax

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

Type Parameters

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

Parameters

Name Type Description
property AvaloniaProperty<TProperty> The property.
selector Func<TProperty, bool> Returns a boolean value based on the property value.
className string The pseudo-class.

Return Value

Type Description
void