StyledElement.

PseudoClass<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

[Obsolete("Use PseudoClass<TOwner, TProperty> and specify the control type.")]
protected static void PseudoClass<TProperty>(AvaloniaProperty<TProperty> property, Func<TProperty, bool> selector, string className)

Attributes

Type Description
ObsoleteAttribute

Type Parameters

Name Description
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