Class StyleInspection

Namespace
Forma.Xaml
Assembly
Forma.dll

The styling of one control: its classes and pseudo-states, every rule considered, and the winning value per property.

public sealed class StyleInspection
Inheritance
StyleInspection
Inherited Members

Properties

Classes

Style classes on the control.

public IReadOnlyList<string> Classes { get; }

Property Value

IReadOnlyList<string>

ControlType

CLR type name of the inspected control.

public string ControlType { get; }

Property Value

string

Name

Name of the control, or empty.

public string Name { get; }

Property Value

string

PseudoStates

Pseudo-states active on the control, such as hover or focus-visible.

public IReadOnlyList<string> PseudoStates { get; }

Property Value

IReadOnlyList<string>

Rules

Every rule attached to the control's style scope, in cascade order (lowest priority first).

public IReadOnlyList<StyleRuleInspection> Rules { get; }

Property Value

IReadOnlyList<StyleRuleInspection>

Template

Name of the control template in effect, or empty.

public string Template { get; }

Property Value

string

Winners

For each styled property, the winning value and where it came from.

public IReadOnlyList<StylePropertyInspection> Winners { get; }

Property Value

IReadOnlyList<StylePropertyInspection>