Selector.

Match(IStyleable, bool) Method

Summary

Tries to match the selector with a control.
Namespace
Avalonia.Styling
Containing Type
Selector

Syntax

public SelectorMatch Match(IStyleable control, bool subscribe = true)

Parameters

Name Type Description
control IStyleable The control.
subscribe bool Whether the match should subscribe to changes in order to track the match over time, or simply return an immediate result.

Return Value

Type Description
SelectorMatch A SelectorMatch.