AXSG supports WinUI-style x:Bind for Avalonia as a source-generated, typed binding
surface. It is not treated as a string-path alias for normal Avalonia bindings; the
compiler parses the expression, resolves the source statically, validates members and
methods at build time, and emits generated runtime helpers.
x:Class-backed viewsx:DataTypeTwoWay and explicit BindBackElementName, RelativeSource, and Source optionsBindings.Initialize(), Bindings.Update(), and
Bindings.StopTracking()x:Bind requires an x:Class root.x:DataType.Examples:
<TextBlock Text="{x:Bind Title}" />
<TextBlock Text="{x:Bind FormatTitle(Title)}" />
<TextBlock Text="{x:Bind Text, ElementName=Editor}" />
<TextBlock Text="{x:Bind Value, Source={x:Static local:BindingSources.Current}, DataType=local:StaticSource}" />
<TextBox Text="{x:Bind Alias, Mode=TwoWay}" />
<Button Click="{x:Bind HandlePrimaryClick}" />
Supported options:
ModeBindBackElementNameRelativeSourceSourceDataTypeConverterConverterCultureConverterLanguageConverterParameterStringFormatFallbackValueTargetNullValueDelayPriorityUpdateSourceTriggerThe compiler resolves x:Bind source context from:
This makes x:Bind closer to WinUI/UWP/Uno semantics than ordinary Avalonia
{Binding}.
x:Bind participates in completion, hover, definition, references, rename, and signature
help. Runtime materialization is generated and reflection-free.
UpdateSourceTrigger=Explicit is supported through generated lifecycle update calls.
MultiBinding / InstancedBinding rather than WinUI runtime
binding managersx:Load integrationx:Bind outside Avalonia binding application is not a validated surfaceplan/ folder for engineering work