Summary
A selector in a
Style
.
- Namespace
- Avalonia
.Styling - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["Selector"]
class Type type-node
Syntax
public abstract class Selector
Properties
Name | Value | Summary |
---|---|---|
InTemplate | bool |
Gets a value indicating whether either this selector or a previous selector has moved
into a template.
|
IsCombinator | bool |
Gets a value indicating whether this selector is a combinator.
|
TargetType | Type? |
Gets the target type of the selector, if available.
|
Methods
Name | Value | Summary |
---|---|---|
Match |
SelectorMatch |
Tries to match the selector with a control.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Child |
Selector |
Returns a selector which matches a previous selector's child.
From Selectors
|
Class |
Selector |
Returns a selector which matches a control's style class.
From Selectors
|
Descendant |
Selector |
Returns a selector which matches a descendant of a previous selector.
From Selectors
|
Is |
Selector |
Returns a selector which matches a type or a derived type.
From Selectors
|
Is |
Selector |
Returns a selector which matches a type or a derived type.
From Selectors
|
Name |
Selector |
Returns a selector which matches a control's Name.
From Selectors
|
Not |
Selector |
Returns a selector which inverts the results of selector argument.
From Selectors
|
Not |
Selector |
Returns a selector which inverts the results of selector argument.
From Selectors
|
OfType |
Selector |
Returns a selector which matches a type.
From Selectors
|
OfType |
Selector |
Returns a selector which matches a type.
From Selectors
|
PropertyEquals |
Selector |
Returns a selector which matches a control with the specified property value.
From Selectors
|
PropertyEquals |
Selector |
Returns a selector which matches a control with the specified property value.
From Selectors
|
Template |
Selector |
Returns a selector which enters a lookless control's template.
From Selectors
|