Xceed Toolkit Plus for WPF v4.6 Documentation
CenterChild Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.Panels Namespace > Carousel Class : CenterChild Method
Child to animation
Length of animation
True, if duration be per quarter turn, otherwise duration the total turn to center the child.
Moves child to the front center of the carousel.
Syntax
'Declaration
 
Public Sub CenterChild( _
   ByVal child As UIElement, _
   ByVal animationDuration As TimeSpan, _
   ByVal perQuarterTurn As Boolean _
) 
'Usage
 
Dim instance As Carousel
Dim child As UIElement
Dim animationDuration As TimeSpan
Dim perQuarterTurn As Boolean
 
instance.CenterChild(child, animationDuration, perQuarterTurn)
public void CenterChild( 
   UIElement child,
   TimeSpan animationDuration,
   bool perQuarterTurn
)

Parameters

child
Child to animation
animationDuration
Length of animation
perQuarterTurn
True, if duration be per quarter turn, otherwise duration the total turn to center the child.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, 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

Reference

Carousel Class
Carousel Members