ICarouselPath
Defines how a carousel computes item positions along a path and applies path-driven animation values.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public interface ICarouselPath : INotifyPropertyChanged
Inherited Members
Properties
Gets or sets whether X and Y coordinates are treated as percentages of the owner size; Z is unchanged.
bool EnableRelativePath { get; set; }
Gets the point used when an item leaves the path.
object FinalPathPoint { get; }
Gets the point used when an item enters the path.
object InitialPathPoint { get; }
Methods
Applies a path evaluation to an item, including location, opacity, scale, and any path-derived Z-index.
void ApplyToElement(VisualElement element, CarouselPathAnimationData data, double value, object evaluated, Animations flags, Size controlSize)
The carousel visual element to update.
dataCarouselPathAnimationDataThe animation data associated with the item.
valuedoubleThe current carousel-location value used to select the path segment.
evaluatedobjectThe path evaluation passed to the selected path segment.
flagsAnimationsThe animation properties to apply.
controlSizeSizeThe size used to resolve relative path coordinates.
Converts a relative path point's X and Y percentages to owner-size coordinates without changing Z.
Converts a point's X and Y owner-size coordinates to percentages without changing Z.
Creates the animation that moves an item between carousel-location values and stores it in the animation data.
void CreateAnimation(VisualElement element, CarouselPathAnimationData data, int frames, int delay)
The carousel visual element to animate.
dataCarouselPathAnimationDataThe animation data that supplies endpoints and receives the created animation.
framesintThe number of animation frames.
delayintThe delay passed to the animated property setting.
Evaluates the path for a carousel-location value; the base path implementation returns null for values handled outside the path segment.
object Evaluate(VisualElement element, CarouselPathAnimationData data, object value)
The carousel visual element being evaluated.
dataCarouselPathAnimationDataThe animation data associated with the evaluation.
valueobjectA boxed double carousel-location value to evaluate.
Returns:The evaluated path point, or null when the value is outside the path segment.
Places a newly added item at the path's initial point and applies its initial animation state.
void InitializeItem(VisualElement element, object flags)
The carousel visual element to initialize.
flagsobjectThe Animations flags that select the initial effects.