Skip to content

DependencyObjectObservableForProperty.GetNotificationForProperty(object, Expression, string, bool, 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 IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged, bool suppressWarnings)

View source

Summary: Returns an observable that raises whenever the dependency property changes on sender.

Parameters

NameTypeDescription
senderobjectThe DependencyObject to observe.
expressionExpressionThe expression carried on each notification.
propertyNamestringThe property name, without the Property suffix.
beforeChangedbooltrue observes the property as a plain object property, since a dependency property has no before-change notification.
suppressWarningsboolPassed through to the plain-object observer when it is used.

Returns: IObservable> -- An observable that registers a property-changed callback and unregisters it on disposal.

Exceptions

TypeCondition
System.ArgumentNullExceptionsender is null.
System.ArgumentExceptionsender is not a DependencyObject.