Scales the element. Note that scale doesn't actually change the elements size. This means that the rest of the UI layout wont be affected and the animation is guaranteed to be fast.

You can scale an element uniformly along all axes by using the Factor property. Alternatively, you can also scale on a per-axis basis using Vector or X, Y, and Z.

Tip: You can use Scale relative to something using the RelativeTo property. The two choices are:

  • SizeChange - scales relative to the change in size of the element specified by the RelativeNode property.
  • SizeFactor - scales with a factor relative to another element, specified by RelativeNode. A factor of 1 would make it the same size as the RelativeNode, while a factor of 0.5 would make it half the size, and so on.

Example

The following example scales a rectangle when it is being pressed

<Rectangle>
    <WhilePressed>
        <Scale Factor="2" Duration="0.4"/>
    </WhilePressed>
</Rectangle>

Location

Namespace
Fuse.Animations
Package
Fuse.Animations 1.9.0

Interface of Scale

Inherited from TransformAnimator<Scaling>

Priority : int ux

When multiple transforms are applied they are applied in a priority order. This setting allows you to override the default priority to get a new order.

Target : Visual ux

The visual that should be animated. If not set, the containing visual is animated by default.

X : float ux

The animation amount on the X-axis.

Y : float ux

The animation amount on the Y-axis.

Z : float ux

The animation amount on the Z-axis.

Inherited from TrackAnimator

DelayBack : double ux

How long to wait, from the end of the backward timeline, before the animator starts changing the value.

DurationBack : double ux

For a continuous track: The duraciton of the change of the value in the backward timeline.

Easing : Easing ux

For a continuous track: This specifies the transition easing between a source and target value.

EasingBack : Easing ux

For a continuous track: This specified the easing for the backward timeline.

Weight : double ux

Allows the value set by this animator to be increased or decreased in significance (the default is 1).

Inherited from Animator

Delay : double ux

Seconds from the start of the trigger until this animator should play.

MixOp : MixOp ux

How to mix this animator when there are multiple conflicting animators affecting the target.

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.