Skip to main content

Selectors Class

Extension methods for Selector.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static class Selectors
View Source
InheritanceObject → 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.
Is(T)(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, Func(Selector, 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.
OfType(T)(Selector)Returns a selector which matches a type.
Or(IReadOnlyList(Selector))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.
PropertyEquals(T)(Selector, AvaloniaProperty(T), 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

Reference

Avalonia.Styling Namespace