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¶
| Name | Summary |
|---|---|
| static Fallback | The fallback affinity for the reflection-based POCO observer (lowest non-zero match). |
| static DefaultInternalTypeConverter | The affinity returned by the built-in value and string type converters. |
| static DefaultEvent | The affinity for binding to a type's conventional default event. |
| static WpfDependencyObject | The affinity for a WPF DependencyObject dependency-property match. |
| static EventEnabledControl | The affinity for an event-enabled control command binding. |
| static Explicit | The affinity for an explicit or interface-based match, such as INotifyPropertyChanged or a named event. |
| static WinUiDependencyObject | The affinity for a WinUI DependencyObject dependency-property match. |
| static WinFormsEvent | The affinity for a WinForms event-based property observation match. |
| static ExactType | The affinity for a strong, exact-type match, such as IReactiveObject. |
| static Kvo | The affinity for an Apple KVO (NSObject) match. |