# MultiDataTriggerBehavior

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions/struct-multidatatriggerbehavior/

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

```rust
struct MultiDataTriggerBehavior
```

A behavior that performs actions when all bound data conditions are satisfied.

A `Condition` compares the value of a binding, or of a property of the associated object or
of a named element, with its value. The conditions are evaluated in a job of the dispatcher
after one of them changed. With `revert_on_false` the reversible
actions are reverted when the conditions stop being met.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L28)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`revert_on_false_property`](#function-revert_on_false_property)
- [`conditions_property`](#function-conditions_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`conditions`](#function-conditions)
- [`set_conditions`](#function-set_conditions)
- [`revert_on_false`](#function-revert_on_false)
- [`set_revert_on_false`](#function-set_revert_on_false)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L41)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<MultiDataTriggerBehavior>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L41)

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

### revert_on_false_property

```rust
fn revert_on_false_property() -> &'static StyledProperty<bool>
```

Identifies the `RevertOnFalse` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L45)

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

### conditions_property

```rust
fn conditions_property() -> &'static StyledProperty<Option<ConditionCollection>>
```

Identifies the `Conditions` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L45)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L170)

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

### new

```rust
fn new() -> Ref<Self>
```

Creates a trigger.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L184)

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

### conditions

```rust
fn conditions(self: &Self) -> Option<ConditionCollection>
```

Gets or sets the collection of conditions that must all be satisfied before actions are
executed. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L190)

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

### set_conditions

```rust
fn set_conditions(self: &Self, value: Option<ConditionCollection>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L194)

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

### revert_on_false

```rust
fn revert_on_false(self: &Self) -> bool
```

Gets or sets a value indicating whether reversible actions should be reverted when the
conditions become false. When false, the trigger matches the legacy semantics and only
executes actions when all conditions are true.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L201)

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

### set_revert_on_false

```rust
fn set_revert_on_false(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/core/multi_data_trigger_behavior.rs#L205)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`StyledElementBehaviorImplExt`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MultiDataTriggerBehavior>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimpl/)

## Availability

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