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
| Name | Type | Description |
|---|---|---|
sender | object (opens in a new tab) | The DependencyObject (opens in a new tab) to observe. |
expression | Expression (opens in a new tab) | The expression carried on each notification. |
propertyName | string (opens in a new tab) | The property name, without the Property suffix. |
beforeChanged | bool (opens in a new tab) | true observes the property as a plain object property, since a dependency property has no before-change notification. |
suppressWarnings | bool (opens in a new tab) | Passed through to the plain-object observer when it is used. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| 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). |