SelectorMatch Class

Summary

Holds the result of a Selector match.
Namespace
Avalonia.Styling
Base Types
  • object
graph BT Type-->Base0["object"] Type["SelectorMatch"] class Type type-node

Syntax

public class SelectorMatch

Remarks

A selector match describes whether and how a Selector matches a control, and in addition whether the selector can ever match a control of the same type.

Constructors

Name Summary
SelectorMatch(IObservable<bool>) Initializes a new instance of the SelectorMatch class with a Sometimes result.

Fields

Name Constant Value Summary
AlwaysThisInstance
Gets a selector match with the result of AlwaysThisInstance.
static
AlwaysThisType
A selector match with the result of AlwaysThisType.
static
NeverThisInstance
A selector match with the result of NeverThisInstance.
static
NeverThisType
A selector match with the result of NeverThisType.
static

Properties

Name Value Summary
Activator IObservable<bool>
Gets an observable which tracks the selector match, in the case of selectors that can change over time.
IsMatch bool
Gets a value indicating whether the match was positive.
Result SelectorMatchResult
Gets the result of the match.