Skip to content

BindingAffinity class

Defined in

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

Summary

Common affinity scores shared by binding type converters, property observation factories, command binders, and the source generator's observation/command plugins. A higher value indicates a stronger match; zero means the candidate does not apply.

Mirrors ReactiveUI's BindingAffinity (the DefaultInternalTypeConverter, DefaultEvent, Explicit and ExactType scores) and is extended additively with the platform-specific scores this library also uses.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Fields

NameSummary
static FallbackThe fallback affinity for the reflection-based POCO observer (lowest non-zero match).
static DefaultInternalTypeConverterThe affinity returned by the built-in value and string type converters.
static DefaultEventThe affinity for binding to a type's conventional default event.
static WpfDependencyObjectThe affinity for a WPF DependencyObject dependency-property match.
static EventEnabledControlThe affinity for an event-enabled control command binding.
static ExplicitThe affinity for an explicit or interface-based match, such as INotifyPropertyChanged or a named event.
static WinUiDependencyObjectThe affinity for a WinUI DependencyObject dependency-property match.
static WinFormsEventThe affinity for a WinForms event-based property observation match.
static ExactTypeThe affinity for a strong, exact-type match, such as IReactiveObject.
static KvoThe affinity for an Apple KVO (NSObject) match.
Inherited members