# INotifyPropertyChanged

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/component_model/trait-inotifypropertychanged/

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

```rust
trait INotifyPropertyChanged
```

Notifies clients that a property value of a model object (an object that
is not part of the class hierarchy, such as a view model) has changed.

The event argument is the name of the property that changed; an empty
name means that all properties of the object changed.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/i_notify_property_changed.rs#L9)

## Members

- [`property_changed`](#function-property_changed)
- [`as_notify_property_changing`](#function-as_notify_property_changing)

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

### property_changed

```rust
fn property_changed(self: &Self) -> &Event<str>
```

The event raised when a property value changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/i_notify_property_changed.rs#L11)

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

### as_notify_property_changing

```rust
fn as_notify_property_changing(self: &Self) -> Option<&dyn INotifyPropertyChanging>
```

The object as `INotifyPropertyChanging`, when it also raises the event of a property
that is about to change; `None` by default.

An observer that holds the object as `INotifyPropertyChanged` uses this to find the
changing event, where .NET casts the object to the other interface.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/i_notify_property_changed.rs#L18)

## Trait implementations

- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)

## Availability

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