# FocusBehaviorBaseImpl

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

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

```rust
trait FocusBehaviorBaseImpl: AttachedToVisualTreeBehaviorImpl + $crate::Upcast<FocusBehaviorBase>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/focus/focus_behavior_base.rs#L23)

## Members

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

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

### focus

```rust
fn focus(this: &Self) -> bool
```

Focuses the associated control, in a job of the dispatcher.

Returns true when the focus is requested; false when the behavior is disabled.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/focus/focus_behavior_base.rs#L23)

## Trait implementations

- [`FocusBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-focusbehaviorbaseimpl/)

## Availability

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