# StyledElementActionImpl

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

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

```rust
trait StyledElementActionImpl: StyledElementImpl + $crate::Upcast<StyledElementAction>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/styled_element/styled_element_action.rs#L23)

## 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/styled_element/styled_element_action.rs#L23)

## Trait implementations

- [`StyledElementActionImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementactionimpl/)

## Availability

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