Class StyleRuleInspection

Namespace
Forma.Xaml
Assembly
Forma.dll

One style rule considered for a control: whether it matched, and if not, why.

public sealed class StyleRuleInspection
Inheritance
StyleRuleInspection
Inherited Members

Properties

Matched

True when the rule's selector matched the control.

public bool Matched { get; }

Property Value

bool

Order

Cascade position: higher specificity wins, then later declaration order.

public int Order { get; }

Property Value

int

Origin

The source location of the rule (for example theme.fcss:12) when the style carries one.

public string Origin { get; }

Property Value

string

Properties

The properties the rule sets.

public IReadOnlyList<string> Properties { get; }

Property Value

IReadOnlyList<string>

Reason

For an unmatched rule, the first reason it does not apply. Null when matched.

public string Reason { get; }

Property Value

string

Selector

The rule's selector text.

public string Selector { get; }

Property Value

string

Specificity

The selector's specificity, used to order competing rules.

public int Specificity { get; }

Property Value

int