Selectors Class

Summary

Extension methods for Selector.
Namespace
Avalonia.Styling
Base Types
  • object
graph BT Type-->Base0["object"] Type["Selectors"] class Type type-node

Syntax

public static class Selectors

Methods

Name Value Summary
Child(Selector) Selector
Returns a selector which matches a previous selector's child.
static
Class(Selector, string) Selector
Returns a selector which matches a control's style class.
static
Descendant(Selector) Selector
Returns a selector which matches a descendant of a previous selector.
static
Is(Selector, Type) Selector
Returns a selector which matches a type or a derived type.
static
Is<T>(Selector) Selector
Returns a selector which matches a type or a derived type.
static
Name(Selector, string) Selector
Returns a selector which matches a control's Name.
static
Not(Selector, Func<Selector, Selector>) Selector
Returns a selector which inverts the results of selector argument.
static
Not(Selector, Selector) Selector
Returns a selector which inverts the results of selector argument.
static
OfType(Selector, Type) Selector
Returns a selector which matches a type.
static
OfType<T>(Selector) Selector
Returns a selector which matches a type.
static
Or(IReadOnlyList<Selector>) Selector
Returns a selector which ORs selectors.
static
Or(Selector[]) Selector
Returns a selector which ORs selectors.
static
PropertyEquals(Selector, AvaloniaProperty, object) Selector
Returns a selector which matches a control with the specified property value.
static
PropertyEquals<T>(Selector, AvaloniaProperty<T>, object) Selector
Returns a selector which matches a control with the specified property value.
static
Template(Selector) Selector
Returns a selector which enters a lookless control's template.
static