# VisualStateManagerImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/visual_state/trait-visualstatemanagerimpl/

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

```rust
trait VisualStateManagerImpl: FerroObjectImpl + $crate::Upcast<VisualStateManager>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/visual_state/visual_state_manager.rs#L38)

## Members

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

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

### go_to_state_core

```rust
fn go_to_state_core(this: &Self, control: &Ref<Control>, template_root: &Ref<Control>, state_name: &str, group: Option<&Ref<VisualStateGroup>>, state: Option<&Ref<VisualState>>, use_transitions: bool) -> bool
```

Changes the state of `group` to `state` (WinUI's overridable `GoToStateCore`).

`template_root` is the element that has the groups; `group` and `state` are the
group and the state named `state_name`, or `None` when no group has a state of that
name (a custom manager is called either way). The base method changes the state when
both are given and returns whether it did.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/visual_state/visual_state_manager.rs#L38)

## Trait implementations

- [`VisualStateManagerImpl`](/docs/0.5.0/api/ferroui-controls/visual_state/trait-visualstatemanagerimpl/)

## Availability

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