Namespace Forma.Xaml
Classes
- DynamicStyleSetter<T>
A style setter whose value follows a resource: when the resource changes, controls the style already applied to update.
- Localization
The data-i18n convention (as i18next's DOM bindings use): controls authored with
data-i18n="menu.play"carry the key as the data attributei18n; Apply(Control, Func<string, string>) sets their text from a translation function, and is called again when the language changes.data-i18n-placeholder,data-i18n-labelanddata-i18n-titlelocalize the placeholder, the accessibility label and the title the same way.
- PseudoLocaleOptions
Options for PseudoLocalizer.
- PseudoLocalizer
A pseudo-locale for layout stress tests: every string is accented, wrapped in markers and made longer, so a layout that only fits the source language fails in a test before a real translation exists. Output is deterministic, and placeholders such as
{0}or{name}are copied verbatim. It is a testing and tooling feature; it is never a shipped language.
- StyleInspection
The styling of one control: its classes and pseudo-states, every rule considered, and the winning value per property.
- StyleInspector
Explains why a control looks the way it does, like a browser's computed-style panel.
- StylePropertyInspection
The winning style value for one property and the rule it came from.
- StyleQuery
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.
- StyleRuleInspection
One style rule considered for a control: whether it matched, and if not, why.
- StyleSelectorPredicate
An attribute (
[data-state="open"]) or structural (:first-child,:nth-child(2n+1)) condition of a compound selector.
- ThemeResources
Applies a named theme to a view's resources. The HTML and CSS dialect emits a token's overrides as
name@themeresources (from:root[data-theme="dark"]or@media (prefers-color-scheme: dark)) and its original value asname@default; Apply(Control, string) copies the chosen set over the base keys, so every livevar(--name)follows, and records the theme as the root'sdata-themeattribute so[data-theme="dark"]selectors match.
- XamlAuthoring
Explicit typed capabilities; ambiguity and expressions require a rebuild, never a guessed setter.
- XamlSourceNode
Revision-scoped compiler identities, not runtime tree ordinals or control names.