Scaling Class
Enlarges or shrinks the element by the factor specified.
Example
The following example will make the Rectangle
twice as big as the original size:
<Rectangle Width="100" Height="100">
<Scaling Factor="2"/>
</Rectangle>
For animated scaling, consider using a Scale animator instead of animating the properties of this class.
The standard options for RelativeTo
are:
Identity
: The default. This treatsFactor
as a multiplier. For example,Factor="2"
scales a Visual to twice its sizeSizeFactor
: Scales relative to the target size ofRelativeNode
multiplied byFactor
. The actual scaling is then the required amount to scale the source element to that target size.SizeChange
: Scales relative to the previous size of the visual prior to a layout change. The actual scaling is then the required amount to scale the source element to that target size.
Location
- Namespace
- Fuse
- Package
- Fuse.Nodes 2.9.1
Interface of Scaling
Scaling Constructor uno
Vector : float3 ux
X : float ux
Shortcut to Vector.X
Y : float ux
Shortcut to Vector.Y
Z : float ux
Shortcut to Vector.Z
Inherited from RelativeTransform<IScalingMode>
RelativeNode : Visual ux
RelativeTo : IScalingMode ux
Inherited from Transform
AppendTo(FastMatrix, float) uno
IsFlat : bool uno
Whether this tranform keeps the object strictly in the XY-plane. This property is used for optimization and must be computed correctly in derived classes.
OnMatrixChanged(object, object) uno
PrependTo(FastMatrix) uno
Inherited from Node
Add(Binding) uno
Bindings : IList of Binding ux
The list of bindings belonging to this 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.
FindByType<T> : T uno
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.
GetNearestAncestorOfType<T> : T uno
Insert(int, Binding) uno
IsRootingCompleted : bool uno
Whether rooting for this node is completed. Returns false if unrooting has started.
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.
NextSibling<T> : T uno
Returns the next sibling node of the given type.
OnDataChanged(string, object) uno
OnRooted uno
If you override OnRooted
you must call base.OnRooted()
first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.
OnUnrooted uno
Parent : Visual uno
The parent Visual of this node. Will return null if the node is not rooted.
PreviousSibling<T> : T uno
Returns the next sibling node of the given type.
Properties : Properties uno
A linked list holding data for extrinsic properties.
Remove(Binding) : bool uno
SoftDispose uno
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
SubtreeToString : string uno
SubtreeToString(StringBuilder, int) uno
TryGetResource(string, Predicate<object> (object), object) : bool uno
VisitSubtree(Action<Node> (Node)) uno
Inherited from PropertyObject
AddPropertyListener(IPropertyListener) uno
OnPropertyChanged(Selector, IPropertyListener) uno
OnPropertyChanged(Selector) uno
RemovePropertyListener(IPropertyListener) uno
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
ITransformRelative uno
IList<Binding> uno
IScriptObject uno
Interface for objects that can have a script engine representation
IProperties uno
ISourceLocation uno
hide