Skip to content

DependencyObjectObservableForProperty.GetNotificationForProperty(object, Expression, string, bool, bool) method

Defined in

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

Applies to

net11.0, net11.0-browserwasm1.0, net11.0-desktop1.0, net11.0-ios27.2, net11.0-windows10.0.19041, net11.0-android37.0, net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-windows10.0.19041, net10.0-android36.0, net10.0-ios26.0

public IObservable<IObservedChange<object, object?>> GetNotificationForProperty(object sender, Expression expression, string propertyName, bool beforeChanged, bool suppressWarnings)

View source (opens in a new tab)

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

Parameters

NameTypeDescription
senderobject (opens in a new tab)The DependencyObject (opens in a new tab) to observe.
expressionExpression (opens in a new tab)The expression carried on each notification.
propertyNamestring (opens in a new tab)The property name, without the Property suffix.
beforeChangedbool (opens in a new tab)true observes the property as a plain object property, since a dependency property has no before-change notification.
suppressWarningsbool (opens in a new tab)Passed through to the plain-object observer when it is used.

Returns: IObservable> (opens in a new tab) -- An observable that registers a property-changed callback and unregisters it on disposal.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)sender is null.
System.ArgumentException (opens in a new tab)sender is not a DependencyObject (opens in a new tab).