Selector Class

A selector in a Style.

Definition

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

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString
(Overrides ObjectToString)
ToString(Style) Gets a string representing the selector, with the nesting separator (`^`) replaced with the parent selector.

Extension Methods

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

See Also