Selectors Class

Extension methods for Selector.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static class Selectors
Inheritance
Object    Selectors

Methods

Child(Selector) Returns a selector which matches a previous selector's child.
Class(Selector, String) Returns a selector which matches a control's style class.
Descendant(Selector) Returns a selector which matches a descendant of a previous selector.
Is(Selector, Type) Returns a selector which matches a type or a derived type.
IsT(Selector) Returns a selector which matches a type or a derived type.
Name(Selector, String) Returns a selector which matches a control's Name.
Nesting(Selector) 
Not(Selector, Selector) Returns a selector which inverts the results of selector argument.
Not(Selector, FuncSelector, Selector) Returns a selector which inverts the results of selector argument.
NthChild(Selector, Int32, Int32) The :nth-child() pseudo-class matches elements based on their position in a group of siblings.
NthLastChild(Selector, Int32, Int32) The :nth-child() pseudo-class matches elements based on their position among a group of siblings, counting from the end.
OfType(Selector, Type) Returns a selector which matches a type.
OfTypeT(Selector) Returns a selector which matches a type.
Or(IReadOnlyListSelector) Returns a selector which ORs selectors.
Or(Selector) Returns a selector which ORs selectors.
PropertyEquals(Selector, AvaloniaProperty, Object) Returns a selector which matches a control with the specified property value.
PropertyEqualsT(Selector, AvaloniaPropertyT, Object) Returns a selector which matches a control with the specified property value.
Template(Selector) Returns a selector which enters a lookless control's template.

See Also