avalonia-data-binding
Installation
SKILL.md
Avalonia Data Binding
Overview
Avalonia 12: compiled bindings are on by default. The root element implicitly has x:CompileBindings="true". Compiled bindings are verified at build time, require x:DataType, and generate no reflection overhead. Reflection bindings remain available per-binding with x:CompileBindings=False.
Binding Modes
| Mode | Direction | Updates |
|---|---|---|
OneWay |
Source → Target | On source change |
TwoWay |
Source ↔ Target | On either change |
OneTime |
Source → Target | Once at bind time |
OneWayToSource |
Target → Source | On target change |
Default |
Per-property default | Typically TwoWay for input controls, OneWay for display |