# BehaviorAction

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/enum-behavioraction/

**enum** · [`ferroui-designer-animation`](/docs/0.5.0/api/ferroui-designer-animation/) · v0.5.0

```rust
enum BehaviorAction
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L27)

## Members

- [`ChangeProperty`](#variant-changeproperty)
- [`InvokeCommand`](#variant-invokecommand)
- [`CallMethod`](#variant-callmethod)
- [`AddClass`](#variant-addclass)
- [`RemoveClass`](#variant-removeclass)
- [`Custom`](#variant-custom)
- [`Markup`](#variant-markup)
- [`to_xaml`](#function-to_xaml)

<a id="variant-changeproperty"></a>

### ChangeProperty

```rust
ChangeProperty { target: Option<String>, property: String, value: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L28)

<a id="variant-invokecommand"></a>

### InvokeCommand

```rust
InvokeCommand { command: String, parameter: Option<String> }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L33)

<a id="variant-callmethod"></a>

### CallMethod

```rust
CallMethod { target: Option<String>, method: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L37)

<a id="variant-addclass"></a>

### AddClass

```rust
AddClass { target: Option<String>, class: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L41)

<a id="variant-removeclass"></a>

### RemoveClass

```rust
RemoveClass { target: Option<String>, class: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L45)

<a id="variant-custom"></a>

### Custom

```rust
Custom { type_name: String, properties: std::collections::BTreeMap<String, String>, children: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L49)

<a id="variant-markup"></a>

### Markup

```rust
Markup { source: String }
```

Opaque property elements, comments or text retained verbatim inside a behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L55)

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

### to_xaml

```rust
fn to_xaml(self: &Self) -> Result<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/interactions.rs#L65)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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