2 types derived from Selector
Microsoft.Maui.Controls (2)
StyleSheets\Selector.cs (2)
138
abstract class UnarySelector :
Selector
142
abstract class Operator :
Selector
30 references to Selector
Microsoft.Maui.Controls (30)
StyleSheets\Selector.cs (21)
13
public static
Selector
Parse(CssReader reader, char stopChar = '\0')
15
Selector
root = All, workingRoot = All;
17
Action<Operator,
Selector
> setCurrentSelector = (op, sel) => SetCurrentSelector(ref root, ref workingRoot, ref workingRootParent, op, sel);
113
static void SetCurrentSelector(ref
Selector
root, ref
Selector
workingRoot, ref Operator workingRootParent, Operator op,
Selector
sel)
135
internal static
Selector
Invalid = new Generic(s => false);
136
internal static
Selector
All = new Generic(s => true);
144
public
Selector
Left { get; set; } = Invalid;
145
public
Selector
Right { get; set; } = Invalid;
329
public static SelectorSpecificity FromSelector(
Selector
selector)
333
case
Selector
.Class c:
335
case
Selector
.Id i:
337
case
Selector
.Element e:
339
case
Selector
.Base b:
341
case
Selector
.And a:
343
case
Selector
.Or o:
345
case
Selector
.Child c:
347
case
Selector
.Descendent d:
349
case
Selector
.Adjacent a:
351
case
Selector
.Sibling s:
StyleSheets\Style.cs (1)
63
public void Apply(VisualElement styleable,
Selector
.SelectorSpecificity selectorSpecificity = default, bool inheriting = false)
StyleSheets\StyleSheet.cs (8)
21
internal IDictionary<
Selector
, Style> Styles { get; set; } = new Dictionary<
Selector
, Style>();
63
var
selector =
Selector
.All;
86
selector =
Selector
.All;
89
selector =
Selector
.Parse(reader, '{');
110
var
selector = kvp.Key;
115
style.Apply(visualStylable,
Selector
.SelectorSpecificity.FromSelector(selector));