Class StyleQuery

Namespace
Forma.Xaml
Assembly
Forma.dll

The equivalent of document.querySelectorAll: finds the controls under a root that match a style selector, using the same matching rules (type, name, classes, pseudo-states, data attributes, structural conditions, descendant and child combinators) as the style engine.

public static class StyleQuery
Inheritance
StyleQuery
Inherited Members

Methods

Select(Control, string)

Returns the matching controls in document order, including the root itself.

public static IReadOnlyList<Control> Select(Control root, string selector)

Parameters

root Control
selector string

Returns

IReadOnlyList<Control>