# FerroPropertyChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/struct-ferropropertychangedeventargs/

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

```rust
struct FerroPropertyChangedEventArgs<'a>
```

Provides information for a property change.

The values are borrowed for the duration of the notification; use the typed
accessors to copy them out.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L10)

## Members

- [`sender`](#function-sender)
- [`property`](#function-property)
- [`old_value`](#function-old_value)
- [`new_value`](#function-new_value)
- [`priority`](#function-priority)
- [`is_effective_value_change`](#function-is_effective_value_change)
- [`is_inherited_value_change`](#function-is_inherited_value_change)
- [`get_old_value`](#function-get_old_value)
- [`get_new_value`](#function-get_new_value)
- [`get_old_and_new_value`](#function-get_old_and_new_value)
- [`to_owned_args`](#function-to_owned_args)

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

### sender

```rust
fn sender(self: &Self) -> &'a FerroObject
```

The object that the property changed on.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L34)

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

### property

```rust
fn property(self: &Self) -> &'static FerroProperty
```

The property that changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L40)

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

### old_value

```rust
fn old_value(self: &Self) -> Option<&'a dyn Any>
```

The old value of the property, untyped. `None` when only the base
value changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L47)

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

### new_value

```rust
fn new_value(self: &Self) -> &'a dyn Any
```

The new value of the property, untyped.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L53)

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

### priority

```rust
fn priority(self: &Self) -> BindingPriority
```

The priority of the binding that produced the value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L59)

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

### is_effective_value_change

```rust
fn is_effective_value_change(self: &Self) -> bool
```

Whether the change represents a change to the effective value of the
property (as opposed to a change of a lower-priority base value).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L66)

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

### is_inherited_value_change

```rust
fn is_inherited_value_change(self: &Self) -> bool
```

Whether an ancestor or inheritance-parent change produced this notification.
This differs from the resulting value's priority: clearing a local value
can expose an inherited value while still being an edit on this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L73)

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

### get_old_value

```rust
fn get_old_value<T: Clone + 'static>(self: &Self) -> Option<T>
```

Gets the old value of the property. Panics if `T` is not the type of
the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L84)

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

### get_new_value

```rust
fn get_new_value<T: Clone + 'static>(self: &Self) -> T
```

Gets the new value of the property. Panics if `T` is not the type of
the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L90)

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

### get_old_and_new_value

```rust
fn get_old_and_new_value<T: Clone + 'static>(self: &Self) -> (T, T)
```

Gets the old and new values of the property. Panics if `T` is not the
type of the property or if there is no old value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L96)

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

### to_owned_args

```rust
fn to_owned_args(self: &Self) -> OwnedFerroPropertyChangedEventArgs
```

The change held by value: the form a handler receives that cannot
borrow the values (a handler attached from markup).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/ferro_property_changed_event_args.rs#L102)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`WeakEventArgs`](/docs/0.5.0/api/ferroui-base/utilities/trait-weakeventargs/)

## Availability

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