Skip to content

ReactiveUIBindingExtensions class

Defined in

Namespace: ReactiveUI.Binding.Reactive Assembly: ReactiveUI.Binding.Reactive.dll Full name: ReactiveUI.Binding.Reactive.ReactiveUIBindingExtensions Modifiers: public static

Summary

View source

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

NameSummary
static BindCommandBinds a command from a view model to a control on a view.
static BindCommandUnsafeBinds a command from a view model to a control on a view.
static BindOneWayCreates a one-way binding from a source property to a target property.
static BindTwoWayCreates a two-way binding between a source property and a target property.
static OneWayBindCreates a one-way binding from a view model property to a view property.
static BindCreates a two-way binding between a view model property and a view property.
static BindOneWayUnsafeCreates a one-way binding from a source property to a target property.
static BindTwoWayUnsafeCreates a two-way binding between a source property and a target property.
static OneWayBindUnsafeCreates a one-way binding from a view model property to a view property.
static BindUnsafeCreates a two-way binding between a view model property and a view property.
static BindInteractionBinds a task-based handler to an interaction exposed by the view model.
static BindInteractionUnsafeBinds a task-based handler to an interaction exposed by the view model.
static BindToApplies an observable stream to a target property. Conceptually similar to source.Subscribe(x => target.property = x).
static BindToUnsafeApplies an observable stream to a target property. Conceptually similar to source.Subscribe(x => target.property = x).
static InvokeCommandExecutes a command with each value the sequence produces.
static InvokeCommandUnsafeExecutes the command a property holds with each value the sequence produces.
static WhenAnyObserves 1 property on the specified sender and applies a selector to the observed changes.
static WhenAnyUnsafeObserves 1 property on the specified sender and applies a selector to the observed changes.
static WhenAnyDynamicObserves 1 dynamically-typed property chain and projects it with a selector.
static WhenAnyObservableObserves 3 observable properties with different types on the specified sender and applies a selector to the combined latest values.
static WhenAnyObservableUnsafeObserves 3 observable properties with different types on the specified sender and applies a selector to the combined latest values.
static WhenAnyValueObserves 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 WhenAnyValueUnsafeObserves 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 WhenChangedObserves changes on 2 properties on the specified object and applies a conversion function to produce a result after any property changes.
static WhenChangedUnsafeObserves changes on 2 properties on the specified object and applies a conversion function to produce a result after any property changes.
static WhenChangingObserves changes on 2 properties on the specified object and applies a conversion function to produce a result before any property changes.
static WhenChangingUnsafeObserves changes on 2 properties on the specified object and applies a conversion function to produce a result before any property changes.
Inherited members