Skip to content

Commit 8ad741f

Browse files
committed
Added a note to the readme about data binding
1 parent 7ca9d6a commit 8ad741f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Additionally, the following Datamodel.NET types are supported:
3737
* Binary codec supports just-in-time attribute loading
3838
* Write your own codecs with the `ICodec` interface
3939

40+
### Data Binding
41+
42+
You can bind to an attribute as if it were a property of the host element, e.g. `{Binding MyElement.Hello}`. If an attribute's name collides with a statically-defined property of `Element` then use indexer syntax instead, e.g. `{Binding MyElement[Owner]}`.
43+
4044
### ObservableAttribute
4145

4246
In order to correctly implement `IDictionary`, attributes are exposed as `KeyValuePair` objects. Since these aren't great for data binding the utility type `ObservableAttribute` is provided.

0 commit comments

Comments
 (0)