Expand description
ferroui-xaml-interactions
The classic triggers and actions of the behaviors of FerroUI, ported from the
Xaml.Behaviors.Interactions project of Xaml.Behaviors (see NOTICE.md):
- triggers on events (
EventTriggerBehavior), on bound data (DataTriggerBehavior,MultiDataTriggerBehavior), on timers (TimerTrigger), on tasks (TaskCompletedTrigger) and on observables (ObservableStreamBehavior); - actions that change a property (
ChangePropertyAction, reversible), call a method (CallMethodAction) or invoke a command (InvokeCommandAction), and the action containers that delay, debounce, throttle or group their actions; - the clipboard actions and the storage pickers (actions and behaviors of buttons and menu items) of the services of the top level;
- behind the features
file-systemandnetwork, the actions and the triggers of the local file system and of the network.
The namespaces of the crate are FerroUI.Xaml.Interactions.Core (with the clipboard and the
storage pickers), FerroUI.Xaml.Interactions.FileSystem and
FerroUI.Xaml.Interactions.Network, mapped into the default XML namespace of the framework:
documents name its types without a prefix once register_types ran.
Structs§
- Async
Action Group - An action that executes its child actions asynchronously, either in sequence or in parallel.
- Async
Data Transfer Ref - A data transfer that is read asynchronously (
IAsyncDataTransfer). - Button
Open File Picker Behavior - Open file picker behavior for
Button: the picker opens when the button is clicked. - Button
Open Folder Picker Behavior - Open folder picker behavior for
Button: the picker opens when the button is clicked. - Button
Save File Picker Behavior - Save file picker behavior for
Button: the picker opens when the button is clicked. - Call
Method Action - An action that calls a method on a specified object when invoked.
- Change
Property Action - An action that will change a specified property to a specified value when invoked.
- Clear
Clipboard Action - An action that will clear the clipboard.
- Clipboard
Ref - A clipboard (
IClipboard). - Data
Trigger - A behavior that performs actions when the bound data meets a specified condition (the short
name of
DataTriggerBehavior). - Data
Trigger Behavior - A behavior that performs actions when the bound data meets a specified condition.
- Debounce
Action - An action that will execute its child actions after a specified delay. If invoked again before the delay elapses, the timer is reset.
- Delay
- The future of
delay. - Delay
Action - An action that waits for a specified duration.
- Event
Trigger - A behavior that listens for a specified event on its source and executes its actions when that event is fired.
- Event
Trigger Behavior - A behavior that listens for a specified event on its source and executes its actions when that event is fired.
- File
Picker Event Args - Event args raised after a file pick operation completes.
- Folder
Picker Event Args - Event args raised after a folder pick operation completes.
- GetClipboard
Data Action - An action that will get the data of a format from the clipboard and pass it to its command.
- GetClipboard
Formats Action - An action that will get the clipboard formats and pass them to its command (a list of the
identifiers of the formats,
Vec<String>). - GetClipboard
Text Action - An action that will get the text from the clipboard and pass it to its command.
- Invoke
Command Action - Executes a specified command (
ICommand) when invoked. - Menu
Item Open File Picker Behavior - Open file picker behavior for
MenuItem: the picker opens when the menu item is clicked. - Menu
Item Open Folder Picker Behavior - Open folder picker behavior for
MenuItem: the picker opens when the menu item is clicked. - Menu
Item Save File Picker Behavior - Save file picker behavior for
MenuItem: the picker opens when the menu item is clicked. - Multi
Data Trigger - A behavior that performs actions when all bound data conditions are satisfied (the short name
of
MultiDataTriggerBehavior). - Multi
Data Trigger Behavior - A behavior that performs actions when all bound data conditions are satisfied.
- Observable
Stream Behavior - A behavior that subscribes to an observable and executes actions on its values, its error and its completion.
- Open
File Picker Action - An action that will open a file picker dialog.
- Open
File Picker ActionV Table - The virtual table of the class.
- Open
File Picker Behavior Base - Open file picker behavior base: a behavior that opens a file picker dialog when the deriving
class calls
execute. - Open
File Picker Behavior BaseV Table - The virtual table of the class.
- Open
Folder Picker Action - An action that will open a folder picker dialog.
- Open
Folder Picker ActionV Table - The virtual table of the class.
- Open
Folder Picker Behavior Base - Open folder picker behavior base: a behavior that opens a folder picker dialog when the deriving
class calls
execute. - Open
Folder Picker Behavior BaseV Table - The virtual table of the class.
- Picker
Action Base - Base class for picker actions: the storage provider, the title and the suggested start location of the picker, and the tracking of the picker operations that run.
- Picker
Behavior Base - Base class for picker behaviors: the storage provider, the title and the suggested start location of the picker.
- Reversible
Action Execution - Executes the actions of a collection, the reversible ones reversibly (an internal class of the reference).
- Save
File Picker Action - An action that will open a save file picker dialog.
- Save
File Picker ActionV Table - The virtual table of the class.
- Save
File Picker Behavior Base - Save file picker behavior base: a behavior that opens a save file picker dialog when the deriving
class calls
execute. - Save
File Picker Behavior BaseV Table - The virtual table of the class.
- Save
File Picker Event Args - Event args raised after a save file pick operation completes.
- SetClipboard
Data Object Action - An action that will set the data object to the clipboard.
- SetClipboard
Text Action - An action that will set the text to the clipboard.
- Storage
File Ref - A file of a storage provider (
IStorageFile). - Storage
File ToRead Stream Converter - Converts a storage file to a read stream: the task of opening the stream
(
TaskHandle<std::io::Result<Box<dyn Read>>>). - Storage
File ToWrite Stream Converter - Converts a storage file to a write stream: the task of opening the stream
(
TaskHandle<std::io::Result<Box<dyn Write>>>). - Storage
Folder Ref - A folder of a storage provider (
IStorageFolder). - Storage
Item Ref - A file or folder of a storage provider (
IStorageItem). - Storage
Item ToPath Converter - Converts a storage item to its path (a
Uri). - Storage
Provider Ref - A storage provider (
IStorageProvider). - Task
Completed Trigger - A trigger that invokes its actions when the supplied task completes.
- Task
Handle - A task of the dispatcher of the user interface, held as an untyped value (
Task<T>). - Throttle
Action - An action that will execute its child actions immediately, but ignores subsequent invocations until a specified interval has passed.
- Timer
Trigger - A trigger that invokes its actions after a specified interval.
Enums§
- Async
Action Mode - Defines the mode of execution for
AsyncActionGroup.
Statics§
- ASSEMBLY
- What this crate states about itself for markup: its assembly name and the namespaces the XML namespace of the framework maps to.
Traits§
- Open
File Picker Action Impl - The overridable members introduced by the class.
- Open
File Picker Action Impl Ext - Access to the base implementations of the overridable members.
- Open
File Picker Behavior Base Impl - The overridable members introduced by the class.
- Open
File Picker Behavior Base Impl Ext - Access to the base implementations of the overridable members.
- Open
Folder Picker Action Impl - The overridable members introduced by the class.
- Open
Folder Picker Action Impl Ext - Access to the base implementations of the overridable members.
- Open
Folder Picker Behavior Base Impl - The overridable members introduced by the class.
- Open
Folder Picker Behavior Base Impl Ext - Access to the base implementations of the overridable members.
- Save
File Picker Action Impl - The overridable members introduced by the class.
- Save
File Picker Action Impl Ext - Access to the base implementations of the overridable members.
- Save
File Picker Behavior Base Impl - The overridable members introduced by the class.
- Save
File Picker Behavior Base Impl Ext - Access to the base implementations of the overridable members.
Functions§
- delay
- A future that completes after
duration(Task.Delay(duration)), measured by a timer of the dispatcher of the thread that first polls it. A zero duration completes at the first poll. - register_
types - Registers the namespaces, the types, the markup metadata and the assembly of this crate (and of the crates it is built on). Cheap and idempotent.
Type Aliases§
- Action
Task - The task of an action that produces no value (
Task).