Skip to main content

Crate ferroui_xaml_behaviors

Crate ferroui_xaml_behaviors 

Source
Expand description

ferroui-xaml-behaviors

The behaviors, triggers and actions of FerroUI in one crate, as the Xaml.Behaviors bundle of Xaml.Behaviors (see NOTICE.md) is one package: each crate of the port is a module of this one, behind a feature, and register_types registers all that are enabled.

ModuleCrateFeature
interactivityferroui-xaml-interactivity (the object model: Interaction.Behaviors, behaviors, triggers, actions)always
animationsferroui-xaml-behaviors-animationsanimations
interactionsferroui-xaml-interactions (event, data and timer triggers, property, method and command actions, clipboard, pickers)interactions
customferroui-xaml-interactions-custom (about 330 behaviors for controls, input, focus, validation, windows, …)custom
eventsferroui-xaml-interactions-events (a trigger and a behavior per input routed event)events
draggableferroui-xaml-interactions-draggabledraggable
drag_and_dropferroui-xaml-interactions-draganddropdrag-and-drop
responsiveferroui-xaml-interactions-responsiveresponsive
reactiveuiferroui-xaml-interactions-reactiveuireactiveui (off by default)

The default features are the crates of the reference’s bundle; ReactiveUI is a package of its own there and a feature that is off here. All types are in the default XML namespace of the framework once register_types ran, so documents name them without a prefix.

Re-exports§

pub use ferroui_xaml_interactivity as interactivity;
pub use ferroui_xaml_behaviors_animations as animations;
pub use ferroui_xaml_interactions_custom as custom;
pub use ferroui_xaml_interactions_draganddrop as drag_and_drop;
pub use ferroui_xaml_interactions_draggable as draggable;
pub use ferroui_xaml_interactions_events as events;
pub use ferroui_xaml_interactions as interactions;
pub use ferroui_xaml_interactions_responsive as responsive;

Functions§

register_types
Registers the types of every enabled behavior crate for markup (and of the crates they are built on). Cheap and idempotent; call it before loading or compiling documents that use behaviors.