# ferroui_xaml_interactions_responsive

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

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

```rust
module ferroui_xaml_interactions_responsive
```

ferroui-xaml-interactions-responsive

Behaviors that switch style classes by the size of a control, ported from the
`Xaml.Behaviors.Interactions.Responsive` project of Xaml.Behaviors (see `NOTICE.md`):

- [`AdaptiveBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptivebehavior/) observes the bounds of its control (or of its source control) and adds
  or removes the class of each of its [`AdaptiveClassSetter`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptiveclasssetter/)s as the width and the height
  meet the minimum and maximum of the setter;
- [`AspectRatioBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-aspectratiobehavior/) does the same with the ratio of the width to the height and the
  minimum and maximum ratios of its [`AspectRatioClassSetter`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-aspectratioclasssetter/)s.

The namespace of the crate is `FerroUI.Xaml.Interactions.Responsive`, mapped into the default
XML namespace of the framework: documents name its types without a prefix once
[`register_types`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/function-register_types/) ran.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/lib.rs#L1)

## Contents

- [`AdaptiveBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptivebehavior/) — struct
- [`AdaptiveClassSetters`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptiveclasssetters/) — struct
- [`AdaptiveClassSetter`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptiveclasssetter/) — struct
- [`AspectRatioBehavior`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-aspectratiobehavior/) — struct
- [`AspectRatioClassSetters`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-aspectratioclasssetters/) — struct
- [`AspectRatioClassSetter`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-aspectratioclasssetter/) — struct
- [`register_types`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/function-register_types/) — function
- [`ASSEMBLY`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/static-assembly/) — static

## Availability

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