# NumberBoxValueChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-numberboxvaluechangedeventargs/

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

```rust
struct NumberBoxValueChangedEventArgs
```

The arguments of the `ValueChanged` event of a [`NumberBox`](/docs/0.5.0/api/ferroui-controls/struct-numberbox/) (WinUI's
`NumberBoxValueChangedEventArgs`): the value before the change and the coerced new value.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/number_box.rs#L99)

## Members

- [`old_value`](#struct_field-old_value)
- [`new_value`](#struct_field-new_value)
- [`old_value`](#function-old_value)
- [`new_value`](#function-new_value)

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

### old_value

```rust
old_value: f64
```

The value before the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/number_box.rs#L101)

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

### new_value

```rust
new_value: f64
```

The new value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/number_box.rs#L103)

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

### old_value

```rust
fn old_value(self: &Self) -> f64
```

The value before the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/number_box.rs#L108)

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

### new_value

```rust
fn new_value(self: &Self) -> f64
```

The new value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/number_box.rs#L113)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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