Skip to main content

Crate ferroui_xaml_interactions_responsive

Crate ferroui_xaml_interactions_responsive 

Source
Expand description

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):

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 ran.

Structs§

AdaptiveBehavior
Observes the Visual::bounds of the associated control, or of the source_control, and sets or removes style classes when the conditions of its AdaptiveClassSetters are met.
AdaptiveClassSetter
Conditional class setter used in AdaptiveBehavior behavior.
AdaptiveClassSetters
The adaptive class setters of an AdaptiveBehavior: a list of AdaptiveClassSetter.
AspectRatioBehavior
Observes bounds changes of a control (or a specified source) and conditionally adds or removes classes based on AspectRatioClassSetter rules.
AspectRatioClassSetter
Conditional class setter based on aspect ratio used in AspectRatioBehavior.
AspectRatioClassSetters
The aspect ratio class setters of an AspectRatioBehavior: a list of AspectRatioClassSetter.

Statics§

ASSEMBLY
What this crate states about itself for markup: its assembly name and the namespace the XML namespace of the framework maps to.

Functions§

register_types
Registers the namespace, the types, the markup metadata and the assembly of this crate (and of the crates it is built on). Cheap and idempotent.