# RoutedEventTriggerBase

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

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

```rust
struct RoutedEventTriggerBase
```

The base class of the triggers of a routed event of the associated visual
(`RoutedEventTrigger` and
`RoutedEventTriggerBaseOfT`): the routing strategies the
handler listens to, and whether the actions mark the event as handled.

The class is abstract.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`event_routing_strategy_property`](#function-event_routing_strategy_property)
- [`construct`](#function-construct)
- [`event_routing_strategy`](#function-event_routing_strategy)
- [`set_event_routing_strategy`](#function-set_event_routing_strategy)
- [`mark_as_handled`](#function-mark_as_handled)
- [`set_mark_as_handled`](#function-set_mark_as_handled)

<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.Custom/core/routed_event_trigger_base.rs#L25)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### event_routing_strategy_property

```rust
fn event_routing_strategy_property() -> &'static StyledProperty<RoutingStrategies>
```

Identifies the `EventRoutingStrategy` property. A deriving class overrides its default
value for its own type in its static constructor (`OverrideMetadata` of the reference:
`event_routing_strategy_property().override_default_value::<T>(..)`).

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

<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.Custom/core/routed_event_trigger_base.rs#L57)

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

### event_routing_strategy

```rust
fn event_routing_strategy(self: &Self) -> RoutingStrategies
```

Gets or sets the routing strategies the handler of the event listens to.

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

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

### set_event_routing_strategy

```rust
fn set_event_routing_strategy(self: &Self, value: RoutingStrategies)
```



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

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

### mark_as_handled

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

Gets or sets the value the handled flag of the event is set to before the actions run.
This is a plain property, not a property of the object model.

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

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

### set_mark_as_handled

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



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AttachedToVisualTreeTriggerBaseImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-attachedtovisualtreetriggerbaseimplext/)
- `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/)
- [`DisposingTriggerImplExt`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-disposingtriggerimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RoutedEventTriggerBase>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`StyledElementBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimpl/)
- [`DisposingTriggerImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-disposingtriggerimpl/)
- [`AttachedToVisualTreeTriggerBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-attachedtovisualtreetriggerbaseimpl/)

## Availability

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