3 implementations of IStyleSelectable
Microsoft.Maui.Controls (3)
Element\Element_StyleSheets.cs (1)
9
public partial class Element :
IStyleSelectable
Shell\MenuShellItem.cs (1)
10
internal class MenuShellItem : ShellItem, IMenuItemController,
IStyleSelectable
StyleableElement\StyleableElement.cs (1)
8
public abstract class StyleableElement : Element,
IStyleSelectable
34 references to IStyleSelectable
Microsoft.Maui.Controls (34)
Element\Element_StyleSheets.cs (7)
12
IEnumerable<
IStyleSelectable
>
IStyleSelectable
.Children => LogicalChildrenInternal;
15
IList<string>
IStyleSelectable
.Classes => null;
18
string
IStyleSelectable
.Id => StyleId;
23
string[]
IStyleSelectable
.NameAndBases
43
IStyleSelectable
IStyleSelectable
.Parent => Parent;
Shell\BaseShellItem.cs (3)
313
static void UpdateFlyoutItemStyles(Grid flyoutItemCell,
IStyleSelectable
source)
537
var
styleClassSource = Shell.GetBindableObjectWithFlyoutItemTemplate(bo) as
IStyleSelectable
;
Shell\MenuShellItem.cs (2)
26
IList<string>
IStyleSelectable
.Classes => ((
IStyleSelectable
)MenuItem).Classes;
StyleableElement\StyleableElement.cs (1)
55
IList<string>
IStyleSelectable
.Classes => StyleClass;
StyleSheets\IStyleSelectable.cs (2)
11
IStyleSelectable
Parent { get; }
13
IEnumerable<
IStyleSelectable
> Children { get; }
StyleSheets\Selector.cs (19)
132
public abstract bool Matches(
IStyleSelectable
styleable);
149
readonly Func<
IStyleSelectable
, bool> func;
150
public Generic(Func<
IStyleSelectable
, bool> func)
155
public override bool Matches(
IStyleSelectable
styleable) => func(styleable);
166
public override bool Matches(
IStyleSelectable
styleable)
178
public override bool Matches(
IStyleSelectable
styleable) => styleable.Id == IdName;
183
public override bool Matches(
IStyleSelectable
styleable) => Right.Matches(styleable) || Left.Matches(styleable);
188
public override bool Matches(
IStyleSelectable
styleable) => Right.Matches(styleable) && Left.Matches(styleable);
199
public override bool Matches(
IStyleSelectable
styleable) =>
211
public override bool Matches(
IStyleSelectable
styleable)
222
public override bool Matches(
IStyleSelectable
styleable) =>
228
public override bool Matches(
IStyleSelectable
styleable)
232
var
parent = styleable.Parent;
245
public override bool Matches(
IStyleSelectable
styleable)
252
IStyleSelectable
prev = null;
253
foreach (
var
elem in styleable.Parent.Children)
270
public override bool Matches(
IStyleSelectable
styleable)
279
foreach (
var
elem in styleable.Parent.Children)
293
foreach (
var
elem in styleable.Parent.Children)