ReactiveUIBindingExtensions class¶
Defined in
Namespace: ReactiveUI.Binding.Reactive
Assembly: ReactiveUI.Binding.Reactive.dll
Full name: ReactiveUI.Binding.Reactive.ReactiveUIBindingExtensions
Modifiers: public static
Summary¶
Observes property chains by reflection, for expressions the generator could not read (WhenChanging).
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471
Remarks¶
These are the opt-in half of WhenChanging. The unsuffixed overloads resolve at compile time and throw when no
generated dispatch claimed the call site; these walk the chain by reflection instead, and say so, so a
consumer publishing trimmed or ahead-of-time sees the requirement at their own call site.
Methods¶
| Name | Summary |
|---|---|
| static BindCommand | Binds a command from a view model to a control on a view. |
| static BindCommandUnsafe | Binds a command from a view model to a control on a view. |
| static BindOneWay | Creates a one-way binding from a source property to a target property. |
| static BindTwoWay | Creates a two-way binding between a source property and a target property. |
| static OneWayBind | Creates a one-way binding from a view model property to a view property. |
| static Bind | Creates a two-way binding between a view model property and a view property. |
| static BindOneWayUnsafe | Creates a one-way binding from a source property to a target property. |
| static BindTwoWayUnsafe | Creates a two-way binding between a source property and a target property. |
| static OneWayBindUnsafe | Creates a one-way binding from a view model property to a view property. |
| static BindUnsafe | Creates a two-way binding between a view model property and a view property. |
| static BindInteraction | Binds a task-based handler to an interaction exposed by the view model. |
| static BindInteractionUnsafe | Binds a task-based handler to an interaction exposed by the view model. |
| static BindTo | Applies an observable stream to a target property. Conceptually similar to source.Subscribe(x => target.property = x). |
| static BindToUnsafe | Applies an observable stream to a target property. Conceptually similar to source.Subscribe(x => target.property = x). |
| static InvokeCommand | Executes a command with each value the sequence produces. |
| static InvokeCommandUnsafe | Executes the command a property holds with each value the sequence produces. |
| static WhenAny | Observes 1 property on the specified sender and applies a selector to the observed changes. |
| static WhenAnyUnsafe | Observes 1 property on the specified sender and applies a selector to the observed changes. |
| static WhenAnyDynamic | Observes 1 dynamically-typed property chain and projects it with a selector. |
| static WhenAnyObservable | Observes 3 observable properties with different types on the specified sender and applies a selector to the combined latest values. |
| static WhenAnyObservableUnsafe | Observes 3 observable properties with different types on the specified sender and applies a selector to the combined latest values. |
| static WhenAnyValue | Observes 1 property on the specified sender and applies a selector function to produce a result after it changes. This is a ReactiveUI compatibility shim. |
| static WhenAnyValueUnsafe | Observes 1 property on the specified sender and applies a selector function to produce a result after it changes. This is a ReactiveUI compatibility shim. |
| static WhenChanged | Observes changes on 2 properties on the specified object and applies a conversion function to produce a result after any property changes. |
| static WhenChangedUnsafe | Observes changes on 2 properties on the specified object and applies a conversion function to produce a result after any property changes. |
| static WhenChanging | Observes changes on 2 properties on the specified object and applies a conversion function to produce a result before any property changes. |
| static WhenChangingUnsafe | Observes changes on 2 properties on the specified object and applies a conversion function to produce a result before any property changes. |