Version

RepositionAnimation Property

Returns/sets a DoubleAnimationBase derived instance that should be used when animating Cards to new layout positions.
Syntax
'Declaration
 
Public Property RepositionAnimation As DoubleAnimationBase
public DoubleAnimationBase RepositionAnimation {get; set;}
Remarks
The supplied instance should animate a double value from 0 to 1 using whatever other animation options are desired. CardView will interpolate the 0-1 values to represent the correct position for Cards at each frame of the animation. If the supplied animation does not animate from 0 to 1, unintended animation behaviors could result. As an exception to this, note that it is perfectly reasonable to construct a DoubleAnimationUsingKeyFrames animation that 'temporarily' goes outside the 0.0-1.0 range in some intermediate KeyFrames to simulate easing.

Note: If you do specify a 'To' value that is not 1.0 you must specify a FillBehavior of 'Stop' for the animation to work properly.

Example
The example code demonstrates how you can modify the repositioning animation.

<Window.Resources>
    
<DoubleAnimationUsingKeyFrames x:Key="repositionAnimation1">
        
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" />
        
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1.5" />
        
<SplineDoubleKeyFrame KeyTime="00:00:01.5" Value="0.8" />
        
<SplineDoubleKeyFrame KeyTime="00:00:02" Value="1" />
    
</DoubleAnimationUsingKeyFrames>
</Window.Resources>

<igDP:XamDataCards Name="xamDataCards1">
    
<igDP:XamDataCards.ViewSettings>
        
<igDP:CardViewSettings RepositionAnimation="{StaticResource repositionAnimation1}" />
    
</igDP:XamDataCards.ViewSettings>
</igDP:XamDataCards>
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