# NotifyPropertyChangedEx

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/binding/trait-notifypropertychangedex/

**trait** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
trait NotifyPropertyChangedEx: Clone + 'static
```

The observation of the properties of an object that raises `PropertyChanged`
(`NotifyPropertyChangedEx`), implemented for the objects held in `Rc` (upstream's classes).

The paths are `PropertyPath`s from `prop!`,
or `PropertyChain`s when a step may be null. Upstream's optional
parameters become methods of their own: `_with` takes `notify_on_initial_value`, and
`_with_fallback` the fallback value too.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L21)

## Members

- [`when_any_property_changed`](#function-when_any_property_changed)
- [`when_property_changed`](#function-when_property_changed)
- [`when_property_changed_with`](#function-when_property_changed_with)
- [`when_property_changed_with_fallback`](#function-when_property_changed_with_fallback)
- [`when_value_changed`](#function-when_value_changed)
- [`when_value_changed_with`](#function-when_value_changed_with)
- [`when_value_changed_with_fallback`](#function-when_value_changed_with_fallback)
- [`when_changed`](#function-when_changed)
- [`when_changed_with`](#function-when_changed_with)
- [`when_changed2`](#function-when_changed2)
- [`when_changed2_with`](#function-when_changed2_with)
- [`when_changed3`](#function-when_changed3)
- [`when_changed3_with`](#function-when_changed3_with)
- [`when_changed4`](#function-when_changed4)
- [`when_changed4_with`](#function-when_changed4_with)
- [`when_changed5`](#function-when_changed5)
- [`when_changed5_with`](#function-when_changed5_with)
- [`when_changed6`](#function-when_changed6)
- [`when_changed6_with`](#function-when_changed6_with)

<a id="function-when_any_property_changed"></a>

### when_any_property_changed

```rust
fn when_any_property_changed(self: &Self, properties_to_monitor: &[&str]) -> Rc<dyn IObservable<Self>>
```

The object, whenever one of `properties_to_monitor` changes, or any property when none is
given (`WhenAnyPropertyChanged(params string[] propertiesToMonitor)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L24)

<a id="function-when_property_changed"></a>

### when_property_changed

```rust
fn when_property_changed<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P) -> Rc<dyn IObservable<PropertyValue<Self, <P as >::Value>>>
where <P as >::Value: 'static
```

The changes of the property of `property_accessor`, as the object with the value, the
current value first; nothing while a null step interrupts the path
(`WhenPropertyChanged(Expression<Func<TObject, TProperty>>, bool notifyOnInitialValue = true)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L29)

<a id="function-when_property_changed_with"></a>

### when_property_changed_with

```rust
fn when_property_changed_with<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P, notify_on_initial_value: bool) -> Rc<dyn IObservable<PropertyValue<Self, <P as >::Value>>>
where <P as >::Value: 'static
```

`when_property_changed` that starts with the current value
only when `notify_on_initial_value` is true
(`WhenPropertyChanged(Expression<Func<TObject, TProperty>>, bool notifyOnInitialValue)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L39)

<a id="function-when_property_changed_with_fallback"></a>

### when_property_changed_with_fallback

```rust
fn when_property_changed_with_fallback<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P, notify_on_initial_value: bool, _fallback_value: impl Fn() -> <P as >::Value + 'static) -> Rc<dyn IObservable<PropertyValue<Self, <P as >::Value>>>
where <P as >::Value: 'static
```

`when_property_changed_with` with a fallback value: the
values that a null step interrupts pass too, without a value
(`WhenPropertyChanged(Expression<Func<TObject, TProperty>>, bool, Func<TProperty?>? fallbackValue)`).

As upstream, the fallback is not called: its presence lets the unobtainable values through.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L55)

<a id="function-when_value_changed"></a>

### when_value_changed

```rust
fn when_value_changed<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P) -> Rc<dyn IObservable<<P as >::Value>>
where <P as >::Value: 'static
```

The values of the property of `property_accessor`, the current value first; nothing while a
null step interrupts the path
(`WhenValueChanged(Expression<Func<TObject, TProperty>>, bool notifyOnInitialValue = true)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L70)

<a id="function-when_value_changed_with"></a>

### when_value_changed_with

```rust
fn when_value_changed_with<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P, notify_on_initial_value: bool) -> Rc<dyn IObservable<<P as >::Value>>
where <P as >::Value: 'static
```

`when_value_changed` that starts with the current value only
when `notify_on_initial_value` is true
(`WhenValueChanged(Expression<Func<TObject, TProperty>>, bool notifyOnInitialValue)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L80)

<a id="function-when_value_changed_with_fallback"></a>

### when_value_changed_with_fallback

```rust
fn when_value_changed_with_fallback<P: IntoPropertyChain<Self>>(self: &Self, property_accessor: P, notify_on_initial_value: bool, fallback_value: impl Fn() -> <P as >::Value + 'static) -> Rc<dyn IObservable<<P as >::Value>>
where <P as >::Value: 'static
```

`when_value_changed_with` with `fallback_value` for the
values that a null step interrupts
(`WhenValueChanged(Expression<Func<TObject, TProperty>>, bool, Func<TProperty>? fallbackValue)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L90)

<a id="function-when_changed"></a>

### when_changed

```rust
fn when_changed<P1: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, result_selector: impl Fn(&Self, <P1 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static
```

The value of `p1` with the object, through `result_selector`, the current one first
(`WhenChanged(Expression<Func<TObject, TProperty1>>, Func<TObject, TProperty1?, TResult>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L104)

<a id="function-when_changed_with"></a>

### when_changed_with

```rust
fn when_changed_with<P1: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, result_selector: impl Fn(&Self, <P1 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static
```

`when_changed` with a fallback value for the values that a null step
interrupts, which are dropped without one
(`WhenChanged(.., Func<TProperty1>? p1Fallback)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L114)

<a id="function-when_changed2"></a>

### when_changed2

```rust
fn when_changed2<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static
```

The latest values of `p1` and `p2` with the object, through `result_selector`, whenever one
changes (`WhenChanged` of two properties).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L129)

<a id="function-when_changed2_with"></a>

### when_changed2_with

```rust
fn when_changed2_with<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>, p2_fallback: Fallback<<P2 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static
```

`when_changed2` with fallback values (`WhenChanged` of two
properties, with `p1Fallback` and `p2Fallback`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L144)

<a id="function-when_changed3"></a>

### when_changed3

```rust
fn when_changed3<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static
```

The latest values of three properties with the object, through `result_selector`
(`WhenChanged` of three properties).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L163)

<a id="function-when_changed3_with"></a>

### when_changed3_with

```rust
fn when_changed3_with<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>, p2_fallback: Fallback<<P2 as >::Value>, p3_fallback: Fallback<<P3 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static
```

`when_changed3` with fallback values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L180)

<a id="function-when_changed4"></a>

### when_changed4

```rust
fn when_changed4<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static
```

The latest values of four properties with the object, through `result_selector`
(`WhenChanged` of four properties).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L205)

<a id="function-when_changed4_with"></a>

### when_changed4_with

```rust
fn when_changed4_with<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>, p2_fallback: Fallback<<P2 as >::Value>, p3_fallback: Fallback<<P3 as >::Value>, p4_fallback: Fallback<<P4 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static
```

`when_changed4` with fallback values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L224)

<a id="function-when_changed5"></a>

### when_changed5

```rust
fn when_changed5<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, P5: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value, <P5 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static,
      <P5 as >::Value: Clone + 'static
```

The latest values of five properties with the object, through `result_selector`
(`WhenChanged` of five properties).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L254)

<a id="function-when_changed5_with"></a>

### when_changed5_with

```rust
fn when_changed5_with<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, P5: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value, <P5 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>, p2_fallback: Fallback<<P2 as >::Value>, p3_fallback: Fallback<<P3 as >::Value>, p4_fallback: Fallback<<P4 as >::Value>, p5_fallback: Fallback<<P5 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static,
      <P5 as >::Value: Clone + 'static
```

`when_changed5` with fallback values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L275)

<a id="function-when_changed6"></a>

### when_changed6

```rust
fn when_changed6<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, P5: IntoPropertyChain<Self>, P6: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value, <P5 as >::Value, <P6 as >::Value) -> R + 'static) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static,
      <P5 as >::Value: Clone + 'static,
      <P6 as >::Value: Clone + 'static
```

The latest values of six properties with the object, through `result_selector`
(`WhenChanged` of six properties).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L309)

<a id="function-when_changed6_with"></a>

### when_changed6_with

```rust
fn when_changed6_with<P1: IntoPropertyChain<Self>, P2: IntoPropertyChain<Self>, P3: IntoPropertyChain<Self>, P4: IntoPropertyChain<Self>, P5: IntoPropertyChain<Self>, P6: IntoPropertyChain<Self>, R: 'static>(self: &Self, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6, result_selector: impl Fn(&Self, <P1 as >::Value, <P2 as >::Value, <P3 as >::Value, <P4 as >::Value, <P5 as >::Value, <P6 as >::Value) -> R + 'static, p1_fallback: Fallback<<P1 as >::Value>, p2_fallback: Fallback<<P2 as >::Value>, p3_fallback: Fallback<<P3 as >::Value>, p4_fallback: Fallback<<P4 as >::Value>, p5_fallback: Fallback<<P5 as >::Value>, p6_fallback: Fallback<<P6 as >::Value>) -> Rc<dyn IObservable<R>>
where <P1 as >::Value: Clone + 'static,
      <P2 as >::Value: Clone + 'static,
      <P3 as >::Value: Clone + 'static,
      <P4 as >::Value: Clone + 'static,
      <P5 as >::Value: Clone + 'static,
      <P6 as >::Value: Clone + 'static
```

`when_changed6` with fallback values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/notify_property_changed_ex.rs#L332)

## Trait implementations

- [`NotifyPropertyChangedEx`](/docs/0.5.0/api/ferroui-dynamic-data/binding/trait-notifypropertychangedex/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
