# ActionImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/trait-actionimpl/

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

```rust
trait ActionImpl: FerroObjectImpl + $crate::Upcast<Action>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/ferro_object/action.rs#L14)

## Members

- [`execute`](#function-execute)

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

### execute

```rust
fn execute(this: &Self, sender: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
```

Executes the action.

`sender` is the object that is passed to the action by the behavior. Generally this is
the associated object of the behavior or a target object. The value of `parameter` is
determined by the caller. An example of parameter usage is EventTriggerBehavior,
which passes the event args as a parameter to its actions.

Returns the result of the action.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/ferro_object/action.rs#L14)

## Trait implementations

- [`ActionImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-actionimpl/)

## Availability

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