Version

UpdateTransform Method

Called during animations to reposition, resize elements.
Syntax
'Declaration
 
Protected Overrides Sub UpdateTransform( _
   ByVal container As DependencyObject, _
   ByVal originalRect As Rect, _
   ByVal currentRect As Rect, _
   ByVal targetRect As Rect, _
   ByVal offset As Vector, _
   ByVal resizeFactor As Double, _
   ByVal calledFromArrange As Boolean _
) 
protected override void UpdateTransform( 
   DependencyObject container,
   Rect originalRect,
   Rect currentRect,
   Rect targetRect,
   Vector offset,
   double resizeFactor,
   bool calledFromArrange
)

Parameters

container
The element being moved.
originalRect
The original location of the element before the animation started.
currentRect
The current location of the element.
targetRect
The target location of the element once the animation has completed.
offset
Any addition offset to apply to the current rect.
resizeFactor
A number used during a resize animation where 0 repreents the starting size and 1 represents the ending size.
calledFromArrange
True is called during the initial arrange pass.
Remarks

Note: derived classeds must override this method to update the RenderTransform for the container

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also