Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 378 Bytes

binding-to-tasks-and-observables.md

File metadata and controls

10 lines (6 loc) · 378 Bytes

Binding to Tasks and Observables

You can subscribe to the result of a task or an observable by using the ^ stream binding operator.

For example if DataContext.Name is an IObservable<string> then the following example will bind to the length of each string produced by the observable as each value is produced

<TextBlock Text="{Binding Name^.Length}"/>