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):
AdaptiveBehaviorobserves the bounds of its control (or of its source control) and adds or removes the class of each of itsAdaptiveClassSetters as the width and the height meet the minimum and maximum of the setter;AspectRatioBehaviordoes the same with the ratio of the width to the height and the minimum and maximum ratios of itsAspectRatioClassSetters.
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§
- Adaptive
Behavior - Observes the
Visual::boundsof the associated control, or of thesource_control, and sets or removes style classes when the conditions of itsAdaptiveClassSetters are met. - Adaptive
Class Setter - Conditional class setter used in
AdaptiveBehaviorbehavior. - Adaptive
Class Setters - The adaptive class setters of an
AdaptiveBehavior: a list ofAdaptiveClassSetter. - Aspect
Ratio Behavior - Observes bounds changes of a control (or a specified source) and conditionally adds or removes
classes based on
AspectRatioClassSetterrules. - Aspect
Ratio Class Setter - Conditional class setter based on aspect ratio used in
AspectRatioBehavior. - Aspect
Ratio Class Setters - The aspect ratio class setters of an
AspectRatioBehavior: a list ofAspectRatioClassSetter.
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.