Changes the range of an animation.

This allows finer control over animations such as Timeline and ..Animationtriggers.

Example

In the following example, a rotation of 90 degrees will be adapted into a rotation of 45 degrees by using a RangeAdapter to change the range our WhilePressed trigger:

<Panel Alignment="Center" Width="200" Height="200">
    <Rectangle Color="#2196F3" CornerRadius="5" />
    <Timeline ux:Name="rotationTimeline">
        <Rotate DegreesZ="90" Duration="1"/>
    </Timeline>
    <RangeAdapter ux:Name="range" Source="rotationTimeline.Progress" SourceRangeMax=".5" SourceRangeMin="0" />
    <WhilePressed>
        <Change range.Value="1" Duration="1"/>
    </WhilePressed>
</Panel>

Location

Namespace
Fuse.Animations
Package
Fuse.Animations 2.9.1
Show Uno properties and methods

Interface of RangeAdapter<T>

Value : T ux

The value to be translated. Change this to have Source updated with the translated value.

ValueRangeMax : T ux

The maximum value to map to on the value. Default: 1

ValueRangeMin : T ux

The minimum value to map to on the value. Default: 0

Inherited from Node

ContextParent : Node uno

The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.

FindNodeByName(Selector, Predicate<Node> (Node)) : Node uno

Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.

IsRootingStarted : bool uno

Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.

Name : Selector ux

Run-time name of the node. This property is automatically set using the ux:Name attribute.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces

IScriptObject uno

Interface for objects that can have a script engine representation