DependencyObjectObservableForProperty.GetAffinityForObject(Type, string, bool) method¶
Defined in
Type: DependencyObjectObservableForProperty
Namespace: ReactiveUI.Uno.Reactive
Assembly: ReactiveUI.Uno.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-ios26.0, net10.0-windows10.0.19041, net10.0-android36.0
public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged)
Summary: Returns the dependency-object affinity when the type declares a {propertyName}Property static member.
Parameters
| Name | Type | Description |
|---|---|---|
type | Type | The type that owns the property. |
propertyName | string | The property name, without the Property suffix. |
beforeChanged | bool | Ignored; before-change requests fall back to plain object observation. |
Returns: int -- The dependency-object affinity for a DependencyObject type with such a member; otherwise zero.