# boxed_parameter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/function-boxed_parameter/

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

```rust
fn boxed_parameter(parameter: &ferroui_reactiveui::CommandParameter) -> Option<ferroui_base::BoxedValue>
```

A command parameter of ReactiveUI as the value of a control's `CommandParameter`: a
`BoxedValue` (or a handle to an object of FerroUI) as it is; a string, a number, a character
or a boolean boxed as itself, so that the control's parameter compares as the value; anything
else in a [`ReactiveCommandParameter`](/docs/0.5.0/api/ferroui-reactiveui-controls/struct-reactivecommandparameter/).

Deviation (DEVIATIONS.md, ReactiveUI controls): upstream's parameter is the same `object` on
both sides; the port's `Rc<dyn Any>` does not compare, so it is converted.

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

## Availability

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