BindingContext
- Namespace: Turian.Engine.UI
- Source File: BindingContext.cs
Resolves and writes binding paths against a data source. Re-read each frame (the immediate-mode contract), so a plain POCO works — INotifyPropertyChanged is not required, though a source that raises it composes fine.
Properties
Source
(object?) : The bound data source.
Public Methods
Resolve
public object? Resolve(string path)
Reads path from the source, or null.
Parameters:
path(string): A dotted member path.
Returns: object?
TrySet
public bool TrySet(string path, object? value)
Writes value to path on the source.
Parameters:
path(string): A dotted member path.value(object?): The new value.
Returns: bool
truewhen the write succeeded (a settable member exists).