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)
Summary: Returns an observable that raises whenever the dependency property changes on sender.
Parameters
| Name | Type | Description |
|---|---|---|
sender | object | The DependencyObject to observe. |
expression | Expression | The expression carried on each notification. |
propertyName | string | The property name, without the Property suffix. |
beforeChanged | bool | true observes the property as a plain object property, since a dependency property has no before-change notification. |
suppressWarnings | bool | Passed through to the plain-object observer when it is used. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | sender is null. |
| System.ArgumentException | sender is not a DependencyObject. |