Skip to content

DependencyObjectObservableForProperty.GetAffinityForObject(Type, string, bool) method

Defined in

Type: DependencyObjectObservableForProperty Namespace: ReactiveUI.Uno Assembly: ReactiveUI.Uno.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-windows10.0.19041, net10.0-ios26.0, net10.0-android36.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-android34.0, net8.0-macos14.5, net8.0-windows10.0.19041

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

View source

Summary: Returns the dependency-object affinity when the type declares a {propertyName}Property static member.

Parameters

NameTypeDescription
typeTypeThe type that owns the property.
propertyNamestringThe property name, without the Property suffix.
beforeChangedboolIgnored; 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.