Skip to content

DependencyObjectObservableForProperty.GetAffinityForObject(Type, string, bool) method

Defined in

Type: DependencyObjectObservableForProperty Namespace: ReactiveUI.Binding.Maui Assembly: ReactiveUI.Binding.Maui.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041

Attributes: [RequiresUnreferencedCode("Uses reflection to find DependencyProperty.")]

public int GetAffinityForObject(Type type, string propertyName, bool beforeChanged)

View source

Inherited documentation

These docs were inherited from ICreatesObservableForProperty. The member doesn't override them on this type.

Summary: Returns a positive integer for types this implementation can observe, or zero/negative for unsupported types. Higher values win.

Parameters

NameTypeDescription
typeTypeThe type being observed.
propertyNamestringThe property name being observed.
beforeChangedboolWhether before-change (PropertyChanging) is requested.

Returns: int -- The affinity score. Positive means supported.