Skip to main content

Crate ferroui_xaml_interactions_custom

Crate ferroui_xaml_interactions_custom 

Source
Expand description

ferroui-xaml-interactions-custom

The custom behaviors, triggers and actions of FerroUI, ported from the Xaml.Behaviors.Interactions.Custom project of Xaml.Behaviors (see NOTICE.md): behaviors for specific controls (buttons, items controls, split views, windows, scroll viewers, text boxes, …), input, gestures and focus, validation, commands executed on events, dialogs and notifications, animations and transitions, and services of the top level.

The namespace of the crate is FerroUI.Xaml.Interactions.Custom (and FerroUI.Xaml.Interactions.Custom.Converters), mapped into the default XML namespace of the framework: documents name its types without a prefix once register_types ran.

The crate is organised in four parts, each with the folders of the reference it holds (part_a.rs to part_d.rs); the folders keep the names of the reference in snake case.

Modules§

converters
The converters of the reference (Converters/, namespace FerroUI.Xaml.Interactions.Custom.Converters).

Structs§

ActiveScreenBehavior
A behavior that exposes the screen containing the associated TopLevel.
ActualThemeVariantChangedBehavior
A base class for behaviors using ActualThemeVariantChanged event.
ActualThemeVariantChangedBehaviorVTable
The virtual table of the class.
ActualThemeVariantChangedTrigger
A trigger that executes its actions when the actual theme variant of the associated object changed.
AddClassAction
Adds a style class to the styled_element, or to the sender when it is not set.
AddItemToItemsControlAction
Allows a user to add the item to ItemsControl.
AddRangeAction
Adds a range of items to a target list when invoked.
AddTransitionAction
Adds a TransitionBase to the transitions collection on the target element.
AnimateOnAttachedBehavior
Runs an animation when the associated control is attached to the visual tree.
AnimationBuilderRef
An animation builder (IAnimationBuilder) held by a property.
AnimationCompletedTrigger
Runs a specified Animation and executes actions when it completes.
ApplyTreeViewFilterAction
Filters a TreeView using the provided query string.
AsyncLoadBehavior
Behavior that calls an asynchronous method when the associated control is loaded.
AttachedToLogicalTreeBehavior
A base class for behaviors using attached to logical tree event.
AttachedToLogicalTreeBehaviorVTable
The virtual table of the class.
AttachedToLogicalTreeTrigger
A trigger that executes its actions when the associated object is attached to the logical tree.
AttachedToLogicalTreeTriggerBase
A trigger that executes when the associated object is attached to the logical tree.
AttachedToLogicalTreeTriggerBaseVTable
The virtual table of the class.
AttachedToVisualTreeBehavior
A base class for behaviors using attached to visual tree event.
AttachedToVisualTreeBehaviorVTable
The virtual table of the class.
AttachedToVisualTreeTrigger
A trigger that executes when the associated object is attached to the visual tree.
AttachedToVisualTreeTriggerBase
A trigger that executes when the associated object is attached to the visual tree.
AttachedToVisualTreeTriggerBaseVTable
The virtual table of the class.
AttentionAnimations
Provides attention-drawing animation helpers inspired by popular web animation libraries such as animate.css.
AutoCompleteBoxOpenDropDownOnFocusBehavior
Opens the drop-down of an AutoCompleteBox when it receives focus.
AutoCompleteBoxSelectionChangedTrigger
Triggers actions when the AutoCompleteBox selection changes.
AutoFocusBehavior
Sets the keyboard focus on the associated control when it is loaded.
AutoScrollToBottomBehavior
A behavior that automatically scrolls to the bottom of a ScrollViewer or ItemsControl when new items are added.
AutoSelectBehavior
Automatically selects the entire content of the associated TextBox when it is loaded.
AutomationNameBehavior
Sets the AutomationProperties.Name property on the associated control when attached, and clears it when detached.
AutomationNameChangedTrigger
Executes actions when the AutomationProperties.Name property of the associated control changes (and once when the trigger is attached, as the observable of the property starts with its current value).
BeginAnimationAction
Starts an Animation on a specified control when executed.
BindPointerOverBehavior
Binds is_pointer_over to whether the pointer is over the associated control.
BindTagToVisualRootDataContextBehavior
Binds the tag of the associated control to the data context of its top level.
BindingBehavior
Applies a binding to a target property when the control is attached to the visual tree.
BindingTriggerBehavior
A behavior that performs actions when the bound data meets a specified condition.
BoundsObserverBehavior
Observes the bounds given to bounds (usually bound to the bounds of a control) and exposes their width and height.
BreakAction
An action that triggers a debugger break.
ButtonClickEventTriggerBehavior
A behavior that listens for a Button::click_event event on its source and executes its actions when that event is fired.
ButtonExecuteCommandOnKeyDownBehavior
Executes a command when a key is pressed while the button has focus.
ButtonHideFlyoutBehavior
Behavior that hides a button’s flyout when is_flyout_open becomes false.
ButtonHideFlyoutOnClickBehavior
Hides the flyout when the button is clicked.
ButtonHidePopupOnClickBehavior
Hides the popup when the button is clicked.
ButtonUploadFileBehavior
Upload file behavior for Button: a click uploads the file.
CallMethodAsyncAction
Calls a method of the target_object (or of the sender) by name: a method without parameters, or with two parameters (the sender and the parameter of the action) whose first parameter is untyped.
CapturePointerAction
Captures the pointer.
CarouselKeyNavigationBehavior
Enables keyboard navigation for a Carousel using arrow keys.
CarouselNextAction
Advances the target Carousel to the next page.
CarouselPreviousAction
Moves the target Carousel to the previous page.
CarouselSelectionChangedTrigger
Executes actions when the associated Carousel changes selection.
Case
A case of a SwitchCaseAction or a SwitchCaseBehavior: the actions (the content of the case in markup) executed when the switch value equals value.
CaseCollection
The cases of a SwitchCaseAction or a SwitchCaseBehavior: a list of Case.
CenterWindowBehavior
Centers the attached window on the current screen when it is attached to the visual tree.
ChangeFerroPropertyAction
An action that sets a registered property (target_property) of the target_object (or of the sender) to value, converted to the type of the property.
ClearAutoCompleteBoxSelectionAction
Clears the selection and text of an AutoCompleteBox.
ClearCollectionAction
Clears all items from a target list when invoked.
ClearItemsControlAction
Allows a user to clear the items from a ItemsControl.
ClearTransitionsAction
Clears the transitions collection.
ClickEventTrigger
Trigger that emulates Button click semantics on any Control.
ClipboardMonitorBehavior
A behavior that monitors the system clipboard for specific data formats.
CloseNotificationAction
Action that closes the specified NotificationCard.
CloseWindowAction
Closes the associated or target window when executed.
CollectionChangedBehavior
Executes different sets of actions when the observed collection changes: the added_actions when items are added, the removed_actions when items are removed and the reset_actions when the collection is reset.
CollectionChangedTrigger
Executes associated actions whenever the bound collection raises a collection changed event.
ComboBoxValidationBehavior
Validation behavior for ComboBox selected item.
ConditionalAction
An action that executes its actions (its content in markup) when condition is true, its else_actions otherwise.
ConditionalBehavior
A trigger that executes its actions (its content in markup) when condition changes to true, its else_actions when it changes to false.
ConsoleBeepAction
An action that plays a system beep.
ContextDialogBehavior
Behavior that manages a context dialog implemented using a Popup.
ContextDialogClosedTrigger
Trigger that listens for the Closed event of ContextDialogBehavior.
ContextDialogOpenedTrigger
Trigger that listens for the Opened event of ContextDialogBehavior.
DataContextChangedBehavior
A base class for behaviors using DataContextChanged event.
DataContextChangedBehaviorVTable
The virtual table of the class.
DataContextChangedTrigger
A trigger that executes its actions when the data context of the associated object changed.
DatePickerValidationBehavior
Validation behavior for DatePicker selected date.
DelayedLoadBehavior
Hides the associated control when it is attached to the visual tree and shows it again after a delay.
DelayedLoadTrigger
Invokes its actions after the associated control is attached to the visual tree and a delay elapses.
DelayedShowControlAction
Shows the target control (or the sender) after a delay.
DetachedFromLogicalTreeTrigger
A trigger that executes its actions when the associated object is detached from the logical tree.
DetachedFromVisualTreeTrigger
A trigger that executes its actions when the associated object is detached from the visual tree.
DialogClosedTrigger
Executes actions when the dialog window is closed.
DialogOpenedTrigger
Executes actions when the dialog window is opened.
DoubleTappedGestureTrigger
A trigger of InputElement::double_tapped_event (a double tap): while the associated visual is in the visual tree, the event runs the actions with its args (TappedEventArgs) as the parameter.
DoubleTappedTrigger
A trigger of InputElement::double_tapped_event (a double tap): while the associated visual is in the visual tree, the event runs the actions with its args (TappedEventArgs) as the parameter.
DragControlBehavior
Drags the target control (or else the associated control) inside its parent with the pointer, through a translate transform.
EntranceAnimations
Provides entrance animation helpers inspired by common CSS transitions (e.g. animate.css, Framer Motion).
ExecuteCommandBehaviorBase
The base class of the behaviors that execute a command (the ExecuteCommandOn*Behavior classes): the command, its parameter, whether it can execute, and the element to focus when it runs.
ExecuteCommandBehaviorBaseVTable
The virtual table of the class.
ExecuteCommandOnActivatedBehavior
A behavior that executes its command when the main window of the application (or the source_control when it is a window) is activated, in an application with a classic desktop lifetime.
ExecuteCommandOnDoubleTappedBehavior
A behavior that executes its command when the InputElement::double_tapped_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnGotFocusBehavior
A behavior that executes its command when the InputElement::got_focus_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnHoldingBehavior
A behavior that executes its command when the InputElement::holding_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnKeyBehaviorBase
The base class of the behaviors that execute a command on a key event: the key or the key gesture that executes it.
ExecuteCommandOnKeyDownBehavior
A behavior that executes its command when the InputElement::key_down_event of its source control (the source_control, or the associated control) is raised and not yet handled with its key or key gesture.
ExecuteCommandOnKeyUpBehavior
A behavior that executes its command when the InputElement::key_up_event of its source control (the source_control, or the associated control) is raised and not yet handled with its key or key gesture.
ExecuteCommandOnLostFocusBehavior
A behavior that executes its command when the InputElement::lost_focus_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPinchBehavior
A behavior that executes its command when the InputElement::pinch_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPinchEndedBehavior
A behavior that executes its command when the InputElement::pinch_ended_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerCaptureLostBehavior
A behavior that executes its command when the InputElement::pointer_capture_lost_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerEnteredBehavior
A behavior that executes its command when the InputElement::pointer_entered_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerExitedBehavior
A behavior that executes its command when the InputElement::pointer_exited_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerMovedBehavior
A behavior that executes its command when the InputElement::pointer_moved_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerPressedBehavior
A behavior that executes its command when the InputElement::pointer_pressed_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerReleasedBehavior
A behavior that executes its command when the InputElement::pointer_released_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerTouchPadGestureMagnifyBehavior
A behavior that executes its command when the InputElement::pointer_touch_pad_gesture_magnify_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerTouchPadGestureRotateBehavior
A behavior that executes its command when the InputElement::pointer_touch_pad_gesture_rotate_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerTouchPadGestureSwipeBehavior
A behavior that executes its command when the InputElement::pointer_touch_pad_gesture_swipe_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPointerWheelChangedBehavior
A behavior that executes its command when the InputElement::pointer_wheel_changed_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPullGestureBehavior
A behavior that executes its command when the InputElement::pull_gesture_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnPullGestureEndedBehavior
A behavior that executes its command when the InputElement::pull_gesture_ended_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnRightTappedBehavior
A behavior that executes its command when the InputElement::right_tapped_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnScrollGestureBehavior
A behavior that executes its command when the InputElement::scroll_gesture_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnScrollGestureEndedBehavior
A behavior that executes its command when the InputElement::scroll_gesture_ended_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnScrollGestureInertiaStartingBehavior
A behavior that executes its command when the InputElement::scroll_gesture_inertia_starting_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnTappedBehavior
A behavior that executes its command when the InputElement::tapped_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnTextInputBehavior
A behavior that executes its command when the InputElement::text_input_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandOnTextInputMethodClientRequestedBehavior
A behavior that executes its command when the InputElement::text_input_method_client_requested_event of its source control (the source_control, or the associated control) is raised and not yet handled.
ExecuteCommandRoutedEventBehaviorBase
The base class of the behaviors that execute a command on a routed event: the routing strategies the handler listens to, and whether the event is marked as handled when the command runs.
ExitAnimations
Provides exit animation helpers inspired by animate.css.
FadeAnimation
Provides fade animation helpers using composition animations.
FadeInBehavior
Plays a simple fade in animation when the associated control is attached.
FluidMoveBehavior
Behavior that animates position changes of a control or its children.
FocusAutoCompleteBoxTextBoxBehavior
Focuses the text box of the template of an AutoCompleteBox when the box receives focus.
FocusBehavior
Focuses the associated control when is_focused becomes true, and sets it back to false when the control loses the focus.
FocusBehaviorBase
The base class of the behaviors that focus their associated control: the navigation method and the key modifiers the focus is given with.
FocusBehaviorBaseVTable
The virtual table of the class.
FocusControlAction
Focuses the target control (or the sender), in a job of the dispatcher.
FocusControlBehavior
Focuses the associated control when focus_flag becomes true, or when it is attached to the visual tree while the flag is set.
FocusNextElementAction
Moves the focus to the next element of the tab order of the top level of the sender, with the tab navigation rules of the framework (the keyboard navigation modes of the containers), without raising key events.
FocusOnAttachedBehavior
Focuses the associated control when it is attached to the visual tree.
FocusOnAttachedToVisualTreeBehavior
Focuses the associated control when it is attached to the visual tree.
FocusOnPointerMovedBehavior
Focuses the associated control when the pointer moves over it.
FocusOnPointerPressedBehavior
Focuses the associated control when a pointer is pressed on it.
FocusOnVisibleBehavior
Focuses the associated control when it is attached to the visual tree while visible, and each time it becomes visible.
FocusSelectedItemBehavior
Focuses the container of the selected item of the associated items control each time the selection changes.
FocusTrapBehavior
Keeps the keyboard focus inside the associated control: the Tab key (and Shift+Tab) moves the focus from its last (first) tab stop back to its first (last) one, and into it from outside.
FramerMotionAnimations
Provides composition animations inspired by popular Framer Motion presets.
GlobalHotkeyBehavior
A behavior that registers a global hotkey (window-wide) to execute actions: a key down event anywhere in the top level of the control (on the tunnel route) with the key and the key modifiers runs the actions, with the event args as the parameter, and is marked as handled.
GotFocusTrigger
A trigger of InputElement::got_focus_event (the focus coming to the element): while the associated visual is in the visual tree, the event runs the actions with its args (FocusChangedEventArgs) as the parameter.
HideAttachedFlyoutBehavior
Hides the attached flyout of the associated control when is_flyout_open becomes false.
HideContextDialogAction
Closes a ContextDialogBehavior when executed.
HideControlAction
Hides the target control (or the sender) by setting its IsVisible property to false.
HideFlyoutAction
Hides the flyout of the target control (or of the sender).
HideOnKeyPressedBehavior
Hides the target control when the key is pressed in the associated control.
HideOnLostFocusBehavior
Hides the target control when the associated control loses the focus.
HidePopupAction
Closes the popup.
HideToolTipAction
Hides the ToolTip of the associated or target control when executed.
HoldingGestureTrigger
A trigger of InputElement::holding_event (a hold): while the associated visual is in the visual tree, the event runs the actions with its args (HoldingRoutedEventArgs) as the parameter.
HoldingTrigger
A trigger of InputElement::holding_event (a hold): while the associated visual is in the visual tree, the event runs the actions with its args (HoldingRoutedEventArgs) as the parameter.
HorizontalScrollViewerBehavior
Enables horizontal scrolling of a ScrollViewer using the mouse wheel.
IfElseTrigger
A behavior that executes different collections of actions depending on the specified condition.
InactivityTrigger
A trigger that fires when the user has been inactive (no mouse/keyboard input) for a specified duration.
IncrementViewModelPropertyAction
Increments a numeric view model property when invoked.
InitializedBehavior
A base class for behaviors using Initialized event.
InitializedBehaviorVTable
The virtual table of the class.
InitializedTrigger
A trigger that executes its actions when the associated object is initialized.
InlineEditBehavior
Edits in place: a display control is swapped for an edit control when the display control is double tapped (or the associated control, with edit_on_associated_object_double_tapped) or the edit key is pressed on it, and swapped back when the accept or the cancel key is pressed in the edit control or it loses the focus.
InsertItemToItemsControlAction
Allows a user to insert the item to a ItemsControl.
InvokeButtonClickAction
Invokes the target button when executed.
ItemNudgeDropBehavior
Moves the containers of the associated ItemsControl aside while an item is dragged over it: the containers after the drag position are translated by their size along the orientation, to show where the item drops. The translations are removed when the drag leaves or drops.
ItemsControlContainerClearingTrigger
A behavior that listens for the ItemsControl::container_clearing event (ContainerClearing) on its source and executes its actions when that event is fired.
ItemsControlContainerEventsBehavior
Base class that exposes container related events from an ItemsControl.
ItemsControlContainerEventsBehaviorVTable
The virtual table of the class.
ItemsControlContainerIndexChangedTrigger
A behavior that listens for the ItemsControl::container_index_changed event (ContainerIndexChanged) on its source and executes its actions when that event is fired.
ItemsControlContainerPreparedTrigger
A behavior that listens for the ItemsControl::container_prepared event (ContainerPrepared) on its source and executes its actions when that event is fired.
ItemsControlPreparingContainerTrigger
A behavior that listens for the ItemsControl::preparing_container event (PreparingContainer) on its source and executes its actions when that event is fired.
KeyDownTrigger
A trigger of InputElement::key_down_event: runs the actions with the key args as the parameter when the key or the key gesture is pressed (any key when neither is set).
KeyGestureTrigger
Trigger that listens for a key gesture.
KeyTrigger
A trigger that listens for key events and executes its actions when the specified key or gesture is detected.
KeyUpTrigger
A trigger of InputElement::key_up_event: runs the actions with the key args as the parameter when the key or the key gesture is released (any key when neither is set).
LaunchUriAction
Launches an absolute URI with the launcher of the top level of the sender.
LaunchUriOrFileAction
An action that will launch a process to open a file or URI. For files, this action will launch the default program for the given file extension. A URI will open in a web browser.
ListBoxSelectAllBehavior
Selects all the items of the associated ListBox when it is attached to the visual tree.
ListBoxUnselectAllBehavior
Unselects all the items of the associated ListBox when it is attached to the visual tree.
LoadedBehavior
A base class for behaviors using loaded event.
LoadedBehaviorVTable
The virtual table of the class.
LoadedTrigger
A trigger that executes its actions when the associated control is loaded.
LogAction
An action that logs a message to the debug output.
LoseFocusOnEnterBehavior
A behavior that loses focus when the Enter key is pressed.
LostFocusTrigger
A trigger of InputElement::lost_focus_event (the focus leaving the element): while the associated visual is in the visual tree, the event runs the actions with its args (FocusChangedEventArgs) as the parameter.
MaxValueValidationRule
Validation rule that checks that a value is less than or equal to a maximum value.
MinLengthValidationRule
Validation rule that checks that a string has a minimum length.
MinValueValidationRule
Validation rule that checks that a value is greater than or equal to a minimum value.
MoveElementToPanelAction
Moves the associated or target element to a specified Panel.
MoveItemInItemsControlAction
Moves an item within an ItemsControl from from_index to to_index.
NetworkStatusTrigger
A trigger that fires when the network status changes.
NotNullValidationRule
Validation rule that checks that a value is not null.
NotificationManagerBehavior
Provides a INotificationManager for the associated Control.
NumericUpDownValidationBehavior
Validation behavior for NumericUpDown value.
ObservableTriggerBehavior
A trigger that subscribes to an observable and executes its actions whenever a new value is produced. The emitted value is exposed through the value property and passed to the actions as a parameter.
OrbitEffectBehavior
A behavior that allows rotating the attached control in 3D space using pointer manipulation.
ParallaxBehavior
A behavior that moves the associated element at a different speed than the scrolling container, creating a parallax effect.
PathIconDataBehavior
Sets the PathIcon::data when the associated icon is attached to the visual tree; the data the icon had is restored when it leaves the visual tree.
PathIconDataChangedTrigger
Invokes actions whenever the PathIcon::data property changes (and once when the trigger is attached, as the observable of the property reports its current value).
PinchEndedGestureTrigger
A trigger of InputElement::pinch_ended_event (the end of a pinch): while the associated visual is in the visual tree, the event runs the actions with its args (PinchEndedEventArgs) as the parameter.
PinchGestureTrigger
A trigger of InputElement::pinch_event (a pinch): while the associated visual is in the visual tree, the event runs the actions with its args (PinchEventArgs) as the parameter.
PlayAnimationBehavior
Plays a specified Animation when the associated element is attached to the visual tree.
PointerCaptureLostTrigger
A trigger of InputElement::pointer_capture_lost_event (the loss of the capture of a pointer): while the associated visual is in the visual tree, the event runs the actions with its args (PointerCaptureLostEventArgs) as the parameter.
PointerEnteredTrigger
A trigger of InputElement::pointer_entered_event (a pointer entering the element): while the associated visual is in the visual tree, the event runs the actions with its args (PointerEventArgs) as the parameter.
PointerExitedTrigger
A trigger of InputElement::pointer_exited_event (a pointer leaving the element): while the associated visual is in the visual tree, the event runs the actions with its args (PointerEventArgs) as the parameter.
PointerMovedTrigger
A trigger of InputElement::pointer_moved_event (a pointer moving over the element): while the associated visual is in the visual tree, the event runs the actions with its args (PointerEventArgs) as the parameter.
PointerOverCursorBehavior
Changes the cursor when the pointer is over the associated control.
PointerPressedTrigger
A trigger of InputElement::pointer_pressed_event (a press of a pointer): while the associated visual is in the visual tree, the event runs the actions with its args (PointerPressedEventArgs) as the parameter.
PointerReleasedTrigger
A trigger of InputElement::pointer_released_event (a release of a pointer): while the associated visual is in the visual tree, the event runs the actions with its args (PointerReleasedEventArgs) as the parameter.
PointerTouchPadGestureMagnifyGestureTrigger
A trigger of InputElement::pointer_touch_pad_gesture_magnify_event (a magnify gesture of a touch pad): while the associated visual is in the visual tree, the event runs the actions with its args (PointerDeltaEventArgs) as the parameter.
PointerTouchPadGestureRotateGestureTrigger
A trigger of InputElement::pointer_touch_pad_gesture_rotate_event (a rotate gesture of a touch pad): while the associated visual is in the visual tree, the event runs the actions with its args (PointerDeltaEventArgs) as the parameter.
PointerTouchPadGestureSwipeGestureTrigger
A trigger of InputElement::pointer_touch_pad_gesture_swipe_event (a swipe gesture of a touch pad): while the associated visual is in the visual tree, the event runs the actions with its args (PointerDeltaEventArgs) as the parameter.
PointerWheelChangedTrigger
A trigger of InputElement::pointer_wheel_changed_event (a turn of the mouse wheel): while the associated visual is in the visual tree, the event runs the actions with its args (PointerWheelEventArgs) as the parameter.
PopupAction
Opens a popup at the pointer with child as its content (the content of the action in markup). The popup is created on the first execution, as a logical child of the sender, and follows the data context of the sender.
PopupClosedTrigger
Executes actions when the closed event of the associated Popup is raised.
PopupOpenedTrigger
Executes actions when the opened event of the associated Popup is raised.
PropertyChangedTrigger
Represents a trigger that performs actions when the bound data have changed.
PropertyValidationBehavior
Base behavior that validates a property value using a set of rules.
PullGestureEndedGestureTrigger
A trigger of InputElement::pull_gesture_ended_event (the end of a pull gesture): while the associated visual is in the visual tree, the event runs the actions with its args (PullGestureEndedEventArgs) as the parameter.
PullGestureGestureTrigger
A trigger of InputElement::pull_gesture_event (a pull gesture): while the associated visual is in the visual tree, the event runs the actions with its args (PullGestureEventArgs) as the parameter.
RangeValidationRule
Validation rule that checks that a value is within a range.
RegexValidationRule
Validation rule that checks that a string matches a regular expression.
ReleasePointerCaptureAction
Releases the pointer capture.
RemoveClassAction
Removes a style class from the styled_element, or to the sender when it is not set.
RemoveElementAction
Removes the target_object (or the sender) from its parent: a panel, a decorator, a content control, a content presenter or an items control.
RemoveItemAtAction
Removes an item at a specified index from an ItemsControl: the items_control, or else the sender.
RemoveItemInItemsControlAction
Allows a user to remove the item from a ItemsControl: the data context of the sender (a control) is removed from the items source of the first items control among the sender and its logical ancestors.
RemoveItemInListBoxAction
Allows a user to remove the item from a ListBox item template.
RemoveRangeAction
Removes a range of items from a target list when invoked.
RemoveTransitionAction
Removes a TransitionBase from the transitions collection on the target element.
RenderRenderTargetBitmapAction
Action that invokes IRenderTargetBitmapRenderHost::render on the specified target.
RenderTargetBitmapBehavior
Behavior that draws into a RenderTargetBitmap and assigns it to the associated Image.
RenderTargetBitmapTrigger
Trigger that calls IRenderTargetBitmapRenderHost::render periodically.
RequestScreenDetailsAction
An action that requests extended screen information from the screens of a top level (Screens::request_screen_details).
RequiredDateValidationRule
Validation rule that requires a date value.
RequiredDecimalValidationRule
Validation rule that requires a decimal value.
RequiredTextValidationRule
Validation rule that requires a non-empty string value.
ResourcesChangedBehavior
A base class for behaviors using ResourcesChanged event.
ResourcesChangedBehaviorVTable
The virtual table of the class.
ResourcesChangedTrigger
A trigger that executes its actions when the resources of the associated object changed.
RightTappedGestureTrigger
A trigger of InputElement::right_tapped_event (a right tap): while the associated visual is in the visual tree, the event runs the actions with its args (TappedEventArgs) as the parameter.
RotateAnimation
Provides rotation animation helpers using composition animations.
RoutedEventTrigger
A trigger of a routed event of the associated object, given untyped (routed_event): while the associated object is in the visual tree, the event runs the actions with its args as the parameter.
RoutedEventTriggerBase
The base class of the triggers of a routed event of the associated visual (RoutedEventTrigger and RoutedEventTriggerBaseOfT): the routing strategies the handler listens to, and whether the actions mark the event as handled.
RoutedEventTriggerBaseOfT
A trigger of a routed event of the associated object whose args are of type T: while the associated object is in the visual tree, the event runs the actions with its args as the parameter.
RoutedEventTriggerBaseOfTVTable
The virtual table of the class.
RoutedEventTriggerBehavior
A behavior that listens for a RoutedEvent event on its source and executes its actions when that event is fired.
RoutedEventTriggerVTable
The virtual table of the class.
RunAnimationTrigger
Runs an animation and invokes actions when the associated control is attached to the visual tree.
ScaleAnimation
Provides scale animation helpers using composition animations.
ScreenReaderAnnounceAction
An action that requests a screen reader announcement.
ScreensChangedTrigger
A trigger that executes its actions when the screen configuration changes.
ScreensRef
The screens of a top level (Screens), compared by identity.
ScreenshotAction
Renders the target control (or the sender) to a bitmap and saves it as a PNG file the user picks.
ScrollChangedTrigger
Executes actions when the ScrollViewer::scroll_changed_event event occurs.
ScrollGestureEndedGestureTrigger
A trigger of InputElement::scroll_gesture_ended_event (the end of a scroll gesture): while the associated visual is in the visual tree, the event runs the actions with its args (ScrollGestureEndedEventArgs) as the parameter.
ScrollGestureGestureTrigger
A trigger of InputElement::scroll_gesture_event (a scroll gesture): while the associated visual is in the visual tree, the event runs the actions with its args (ScrollGestureEventArgs) as the parameter.
ScrollGestureInertiaStartingGestureTrigger
A trigger of InputElement::scroll_gesture_inertia_starting_event (the start of the inertia of a scroll gesture): while the associated visual is in the visual tree, the event runs the actions with its args (ScrollGestureInertiaStartingEventArgs) as the parameter.
ScrollToControlAction
Brings the target control (or the sender) into view.
ScrollToItemBehavior
Scrolls the associated ItemsControl to a specific item.
ScrollToItemIndexBehavior
Scrolls the associated ItemsControl to a given item index.
ScrollToOffsetAction
Scrolls a ScrollViewer to the specified offsets when executed.
ScrollViewerOffsetBehavior
Sets the offset of the associated ScrollViewer.
SelectAllOnFocusBehavior
A behavior that automatically selects all text in a TextBox when it receives focus.
SelectListBoxItemOnPointerMovedBehavior
Sets the IsSelected property of the ListBoxItem parent of the associated control to true on its pointer moved event.
SelectingItemsControlBehavior
Enables the standard selection indicator animation on selecting items controls.
SelectingItemsControlEventsBehavior
A base class for behaviors that handle the selection changed event of the associated SelectingItemsControl: the event goes to on_selection_changed.
SelectingItemsControlEventsBehaviorVTable
The virtual table of the class.
SelectingItemsControlSearchBehavior
Filters SelectingItemsControl items based on the text of a search box: the tab items whose header contains the text stay visible, the first of them is selected.
SetAutomationIdAction
Sets the AutomationProperties.AutomationId property on the target control when executed.
SetCursorAction
Sets the cursor on a target control.
SetCursorBehavior
Sets the cursor for the associated control when attached.
SetCursorFromProviderAction
Sets the cursor on a target control using an ICursorProvider.
SetCursorFromProviderBehavior
Sets the cursor provided by an ICursorProvider when attached.
SetEnabledAction
Sets the IsEnabled property of the target control (or of the sender).
SetPathIconDataAction
Changes the PathIcon::data of a target icon when executed.
SetThemeVariantAction
Sets the requested theme variant of the target theme variant scope (or of the sender when it is one).
SetToolTipTipAction
Sets the tip_property of the associated or target control when executed.
SetViewModelPropertyAction
Sets a view model property to a specified value when invoked.
SetViewModelPropertyOnLoadBehavior
Sets a view model property when the associated control is loaded.
ShowBehaviorBase
Base class for behaviors that show a control in response to an event.
ShowContextDialogAction
Opens a ContextDialogBehavior when executed.
ShowContextMenuAction
Opens the context menu of the target control (or of the sender).
ShowControlAction
Shows the target control (or the sender) by setting its IsVisible property to true.
ShowDialogAction
Shows a Window as a dialog: owned by owner, or else by the window of the sender, or as a plain window when there is no owner.
ShowErrorNotificationAction
Shows an error notification using an INotificationManager.
ShowFlyoutAction
Shows the flyout of the target control (or of the sender) at that control.
ShowInformationNotificationAction
Shows an information notification using an INotificationManager.
ShowNotificationAction
Shows a notification using an INotificationManager.
ShowOnDoubleTappedBehavior
A behavior that allows to show control on double tapped event.
ShowOnKeyDownBehavior
A behavior that allows to show control on key down event: the key or the gesture shows it.
ShowOnTappedBehavior
A behavior that allows to show control on tapped event.
ShowPointerPositionBehavior
Shows the position of the pointer over the associated control in the target text block.
ShowPopupAction
Opens the popup, placed at the target control (or at the sender) when it has no placement target.
ShowSuccessNotificationAction
Shows a success notification using an INotificationManager.
ShowToolTipAction
Shows the ToolTip of the associated or target control when executed.
ShowWarningNotificationAction
Shows a warning notification using an INotificationManager.
ShowWindowAction
Shows the specified window when executed.
SizeChangedTrigger
A behavior that triggers its actions whenever the associated control size changes.
SliderValidationBehavior
Validation behavior for range based controls like Slider value.
SlidingAnimation
Slides an element into its place when it is loaded, from outside one of its edges.
SpecialAnimations
Provides special animation helpers that do not fit other categories.
SplitViewPaneClosedTrigger
Executes actions when the PaneClosed event is raised.
SplitViewPaneClosingTrigger
Executes actions when the PaneClosing event is raised.
SplitViewPaneOpenedTrigger
Executes actions when the PaneOpened event is raised.
SplitViewPaneOpeningTrigger
Executes actions when the PaneOpening event is raised.
SplitViewStateBehavior
Updates SplitView properties based on size conditions.
SplitViewStateSetter
Describes a state for SplitViewStateBehavior using size conditions.
SplitViewStateSetters
The split view state setters of a SplitViewStateBehavior: a list of SplitViewStateSetter.
SplitViewTogglePaneAction
Toggles the is_pane_open state of a SplitView when executed.
StartAnimationAction
Starts an Animation on the associated control.
StartBuiltAnimationAction
Starts an animation built in code on the associated control.
StaticRenderTargetBitmapBehavior
Behavior that draws once into a RenderTargetBitmap and assigns it to the associated Image. Rendering can be triggered by calling IRenderTargetBitmapRenderHost::render.
SwitchCaseAction
An action that executes the actions of the first of its cases (its content in markup) whose value equals value, or its default_actions when none does.
SwitchCaseBehavior
A trigger that executes the actions of the first of its cases (its content in markup) whose value equals value, or its default_actions when none does: once when it is initialized, then in a job of the dispatcher after each change of the value.
TabControlKeyNavigationBehavior
Enables keyboard navigation for a TabControl using arrow keys.
TabControlNextAction
Advances the target TabControl to the next tab.
TabControlPreviousAction
Moves the target TabControl to the previous tab.
TabControlSelectionChangedTrigger
Executes actions when the associated TabControl changes selection.
TappedGestureTrigger
A trigger of InputElement::tapped_event (a tap): while the associated visual is in the visual tree, the event runs the actions with its args (TappedEventArgs) as the parameter.
TappedTrigger
A trigger of InputElement::tapped_event (a tap): while the associated visual is in the visual tree, the event runs the actions with its args (TappedEventArgs) as the parameter.
TextBoxSelectAllOnGotFocusBehavior
A behavior that allows to select all TextBox text on got focus event.
TextBoxSelectAllTextBehavior
Selects all the text of the associated TextBox when it is attached to the visual tree.
TextBoxValidationBehavior
Validation behavior for TextBox text.
TextInputMethodClientRequestedTrigger
A trigger of InputElement::text_input_method_client_requested_event (the request of the client of an input method): while the associated visual is in the visual tree, the event runs the actions with its args (TextInputMethodClientRequestedEventArgs) as the parameter.
TextInputTrigger
A trigger of InputElement::text_input_event: runs the actions with the text input args as the parameter when the text is input (any text when it is not set).
ThemeVariantBehavior
Sets the requested theme variant of the associated ThemeVariantScope while it is in the visual tree, and restores the previous one when it leaves it.
ThemeVariantTrigger
Executes actions when the actual theme variant of the associated element matches the specified theme_variant.
TiltEffectBehavior
A behavior that applies a 3D tilt rotation to the element based on the pointer position.
ToggleClassAction
Toggles a style class of the styled_element, or to the sender when it is not set.
ToggleIsExpandedOnDoubleTappedBehavior
Toggles the IsExpanded property of the TreeViewItem parent of the associated control on the DoubleTapped event.
ToggleViewModelBooleanAction
Toggles a boolean view model property when invoked.
ToolTipClosingTrigger
Trigger that listens for the ToolTip::tool_tip_closing_event.
ToolTipOpeningTrigger
Trigger that listens for the ToolTip::tool_tip_opening_event.
TransitionsBehavior
Sets the transitions collection on the associated control when attached.
TransitionsChangedTrigger
Executes actions whenever the transitions collection changes.
TreeViewFilterBehavior
Filters TreeView items based on the text of a search box.
TreeViewFilterTextChangedTrigger
Executes actions when the search box text changes, with the args of the change as the parameter.
UnloadedTrigger
A trigger that executes its actions when the associated control is unloaded.
UploadCompletedTrigger
Executes actions when the bound value becomes true.
UploadFileAction
Asynchronously uploads a file to a specified URL and invokes a command when completed.
UploadFileBehaviorBase
Base class for behaviors that upload a file to a URL.
ValidationRules
The validation rules of a PropertyValidationBehavior: a list of objects that implement IValidationRule.
ValueChangedTriggerBehavior
A behavior that performs actions when the bound data produces new value.
ViewModelPropertyChangedTrigger
Triggers when the specified view model property changes.
ViewportBehavior
Listens for the associated element entering or exiting the parent ScrollViewer viewport.
VisualDebugBehavior
A behavior that visualizes events on the attached control for debugging purposes: each time the event fires, the actions run and the control is highlighted for duration.
WindowAction
An action that performs common window operations.
WindowDragMoveBehavior
A behavior that allows the user to drag the window by clicking and holding the associated control.
WindowStateTrigger
Executes actions when the window state matches the specified value.
WriteableBitmapBehavior
Creates a WriteableBitmap and optionally renders it once using a renderer.
WriteableBitmapRef
A writeable bitmap held by a property.
WriteableBitmapRenderAction
Invokes an IWriteableBitmapRenderer to render into a bitmap.
WriteableBitmapRenderBehavior
Creates a WriteableBitmap and updates it using a renderer on a timer.
WriteableBitmapTimerTrigger
A trigger that fires its actions on a timer and passes a WriteableBitmap as parameter.
WriteableBitmapTrigger
A trigger that executes its actions when trigger is called, passing a WriteableBitmap as parameter.

Enums§

ChangeSize
The scroll amount of a HorizontalScrollViewerBehavior for each wheel delta.
FiredOn
Specifies which keyboard event will fire the trigger.
FluidMoveScope
Determines if the behavior applies to the associated element or its children.
KeyGestureTriggerFiredOn
Specifies when a KeyGestureTrigger should be fired.
LogActionLevel
Specifies the severity level of the log message.
NetworkStatus
Defines the network status to listen for.
SortDirection
Sort order for tab items.
WindowActionType
Defines the window action types.

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§

ActualThemeVariantChangedBehaviorImpl
The overridable members introduced by the class.
ActualThemeVariantChangedBehaviorImplExt
Access to the base implementations of the overridable members.
AttachedToLogicalTreeBehaviorImpl
The overridable members introduced by the class.
AttachedToLogicalTreeBehaviorImplExt
Access to the base implementations of the overridable members.
AttachedToLogicalTreeTriggerBaseImpl
The overridable members introduced by the class.
AttachedToLogicalTreeTriggerBaseImplExt
Access to the base implementations of the overridable members.
AttachedToVisualTreeBehaviorImpl
The overridable members introduced by the class.
AttachedToVisualTreeBehaviorImplExt
Access to the base implementations of the overridable members.
AttachedToVisualTreeTriggerBaseImpl
The overridable members introduced by the class.
AttachedToVisualTreeTriggerBaseImplExt
Access to the base implementations of the overridable members.
DataContextChangedBehaviorImpl
The overridable members introduced by the class.
DataContextChangedBehaviorImplExt
Access to the base implementations of the overridable members.
ExecuteCommandBehaviorBaseImpl
The overridable members introduced by the class.
ExecuteCommandBehaviorBaseImplExt
Access to the base implementations of the overridable members.
FocusBehaviorBaseImpl
The overridable members introduced by the class.
FocusBehaviorBaseImplExt
Access to the base implementations of the overridable members.
IAnimationBuilder
Provides a way to build Animation instances in code.
ICursorProvider
Provides a custom cursor instance.
IRenderTargetBitmapRenderHost
Defines a render host that can update an underlying RenderTargetBitmap.
IRenderTargetBitmapRenderer
Provides a method used by RenderTargetBitmapBehavior to draw onto a render target.
IRenderTargetBitmapSimpleRenderer
Provides a method used by StaticRenderTargetBitmapBehavior to draw onto a render target.
IValidationRule
Defines a validation rule.
IWriteableBitmapRenderer
Defines a method used to render into a WriteableBitmap.
InitializedBehaviorImpl
The overridable members introduced by the class.
InitializedBehaviorImplExt
Access to the base implementations of the overridable members.
ItemsControlContainerEventsBehaviorImpl
The overridable members introduced by the class.
ItemsControlContainerEventsBehaviorImplExt
Access to the base implementations of the overridable members.
LoadedBehaviorImpl
The overridable members introduced by the class.
LoadedBehaviorImplExt
Access to the base implementations of the overridable members.
ResourcesChangedBehaviorImpl
The overridable members introduced by the class.
ResourcesChangedBehaviorImplExt
Access to the base implementations of the overridable members.
RoutedEventTriggerBaseOfTImpl
The overridable members introduced by the class.
RoutedEventTriggerBaseOfTImplExt
Access to the base implementations of the overridable members.
RoutedEventTriggerImpl
The overridable members introduced by the class.
RoutedEventTriggerImplExt
Access to the base implementations of the overridable members.
SelectingItemsControlEventsBehaviorImpl
The overridable members introduced by the class.
SelectingItemsControlEventsBehaviorImplExt
Access to the base implementations of the overridable members.

Functions§

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.