Microsoft.Toolkit.Uwp.UI.Behaviors Namespace

Classes

AnimationCompletedTriggerBehavior

A custom Microsoft.Xaml.Interactivity.Trigger that fires whenever a linked AnimationSet completes.

AnimationStartedTriggerBehavior

A custom Microsoft.Xaml.Interactivity.Trigger that fires whenever a linked AnimationSet starts.

AutoFocusBehavior

This behavior automatically sets the focus on the associated Windows.UI.Xaml.Controls.Control when it is loaded.

AutoSelectBehavior

This behavior automatically selects the entire content of the associated Windows.UI.Xaml.Controls.TextBox when it is loaded.

BehaviorBase<T>

Base class for behaviors that solves 2 problems:

  1. Prevent duplicate initialization that can happen (prevent multiple OnAttached calls);
  2. Whenever Initialize() initially fails, this method will subscribe to Windows.UI.Xaml.FrameworkElement.SizeChanged to allow lazy initialization.
FadeHeaderBehavior

Performs an fade animation on a ListView or GridView Header using composition.

FocusBehavior

This behavior sets the focus on the first control of Targets which accepts it. The focus will be set following the Targets order. The first control being ready and accepting the focus will receive it. The focus can be set to another control with a higher priority if it loads before FocusEngagementTimeout. The focus can be set to another control if some controls will be loaded/unloaded later.

FocusTarget

A target for the FocusBehavior.

FocusTargetList

A collection of FocusTarget.

KeyDownTriggerBehavior

This behavior listens to a key down event on the associated Windows.UI.Xaml.UIElement when it is loaded and executes an action.

QuickReturnHeaderBehavior

Performs an animation on a ListView or GridView Header to make it quick return using composition.

StartAnimationAction

An Microsoft.Xaml.Interactivity.IAction implementation that can trigger a target AnimationSet instance.

StickyHeaderBehavior

Performs an animation on a ListView or GridView Header to make it sticky using composition.

StopAnimationAction

An Microsoft.Xaml.Interactivity.IAction implementation that can stop a target AnimationSet instance.

ViewportBehavior

A class for listening to an element enter or exit the ScrollViewer viewport